摘要: 皇后问题。。。打了一下13的表,水过。USACO第一单元终于给刷完了。上图。 1 /* 2 ID: cuizhe 3 LANG: C++ 4 TASK: checker 5 */ 6 #include <cstdio> 7 #include <cstring> 8 #include <cmath> 9 #include <algorithm>10 using namespace std;11 int r[31],c[31],lr[31],lc[31],n,num;12 void dfs(int x,int y,int step)13 {14 in 阅读全文
posted @ 2012-11-03 15:32 Naix_x 阅读(219) 评论(0) 推荐(0) 编辑