摘要: 问题描述小明很贪玩,总是找些小游戏玩儿,今天他看到了一个新的游戏--连连跳,游戏是在一个由nxm个单元格组成的矩形里进行,每个方格里有一个整数x,表示从该方格向上,向下,向左,向右能跳1 2 #include 3 #include 4 #define true 1 5 #define false 0 6 #define max 10100 7 8 struct 9 {10 int x,y,step,pre;11 }queue_type[max];12 int dir[4][2]={{0,1},{0,-1},{1,0},{-1,0}};13 int vis[max][max];14... 阅读全文
posted @ 2013-07-18 10:53 lianw 阅读(276) 评论(0) 推荐(0) 编辑