摘要:
什么是BFS传送门。今天学习BFS,加油!先定义个数组:struct Node{ int a=0; int b=0; int step=0;};int map[5][4]={//地图 0,0,3,2,//2是终点 3是山,不能走 0,0... 阅读全文
posted @ 2015-03-24 15:44
Sundy.Lee
阅读(97)
评论(0)
推荐(0)
摘要:
题目如上。思路(未写)完整代码如下:#include#include#includeusing namespace std;int arr[9]={1,2,3,4,5,6,7,8,9};int n=0;void line(int s)//输出一行{ for(int i=1;i>n; for(int... 阅读全文
posted @ 2015-03-24 13:23
Sundy.Lee
阅读(134)
评论(0)
推荐(0)

浙公网安备 33010602011771号