2013年6月29日

hdoj 2553 N皇后问题

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2553 1 #include 2 #include 3 using namespace std; 4 5 int n,tot,x[15]; 6 7 void dfs(int t){ 8 if(t>n) tot++; 9 else{10 for(int i=1;i>n,n) cout<<a[n]<<endl;32 return 0;33 } 阅读全文

posted @ 2013-06-29 07:26 SCNU20102200088 阅读(203) 评论(0) 推荐(0) 编辑

导航