摘要:
简单题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <algorithm>using namespace std;#define maxn 105int f[maxn][maxn];int num[maxn];bool vis[maxn];int p, t;bool same(int a, int b){ if (num[a] != num[b]) return false; for (int i = 阅读全文
posted @ 2011-08-11 21:56
undefined2024
阅读(322)
评论(0)
推荐(0)
摘要:
简单题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;#define maxn 40int x, y;bool map[maxn][maxn];char st[maxn * maxn * 2];void input(){ scanf("%d%d", &x, &y); scanf("%s", st); int n = strlen(st); 阅读全文
posted @ 2011-08-11 19:56
undefined2024
阅读(242)
评论(0)
推荐(0)
摘要:
简单题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <queue>using namespace std;#define maxn 1000005#define maxm 10004struct Node1{ int a; Node1(int aa) : a(aa) { }};struct Node2{ int a; Node2(int aa) : a(aa) { }};int m, n, p;int 阅读全文
posted @ 2011-08-11 19:21
undefined2024
阅读(254)
评论(0)
推荐(0)