摘要: 地址:http://hustoj.sinaapp.com/problem.php?id=1836摆棋子,但是其横竖斜向均不可另有棋子,输出前三种解(按字典序输出),并输出总解数 1 #include <iostream> 2 #include <algorithm> 3 #include <cstring> 4 #define MAX 13 5 using namespace std; 6 7 int a[MAX]; 8 int n,con; 9 10 void print()11 {12 for(int i=0;i<n;i++)13 {14 cout 阅读全文
posted @ 2013-01-25 13:07 tjsuhst 阅读(379) 评论(0) 推荐(0)