- 博客(2)
- 资源 (5)
- 收藏
- 关注
原创 n皇后问题(回溯法)
#include #include #include using namespace std; #define maxn 10 int n; bool vis[maxn]; int sum; int c[maxn]; bool check(int cur,int j){ if(vis[j])return false; for(int i=0;i<cur;i++){ if(j-c
2015-05-24 20:55:23 596
原创 Codeforces Round #301 (Div. 2)
#include #include #include #include #include using namespace std; #define maxn 1005 #define inf 0x3f3f3f3f char s1[maxn],s2[maxn]; int main() { int n; cin>>n; cin>>s1>>s2; int d=0;
2015-05-01 22:08:54 800
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人