摘要: 水过,水过,这个程序跑7,跑5分钟左右把。。。 1 /* 2 ID: cuizhe 3 LANG: C++ 4 TASK: betsy 5 */ 6 #include 7 #include 8 #include 9 using namespace std;10 int p[8][8],ans,n;11 int o[8][8];12 int a[4] = {0,0,1,-1};13 int b[4] = {1,-1,0,0};14 void dfs(int x,int y,int step)15 {16 int i,j,k;17 if(step == n*n)18 ... 阅读全文
posted @ 2013-08-18 15:51 Naix_x 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 非常恶心的一题,卡了三个月,没什么动力做了,代码直接抄的别人的。。。这题主要思路就是预处理出几个数组,再预处理出几个数组,最后DP,输出一下路径。。。写起来挺非常麻烦,代码不贴了,丢人。。。把USACO,赶紧刷完把。 阅读全文
posted @ 2013-08-18 14:33 Naix_x 阅读(149) 评论(0) 推荐(0) 编辑