摘要: 简单题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;#define maxn 50005int n;int f[maxn];int main(){ //freopen("t.txt", "r", stdin); scanf("%d", &n); for (int i = 0; i < n; i++) scanf(&qu 阅读全文
posted @ 2011-08-06 12:18 undefined2024 阅读(143) 评论(0) 推荐(0)
摘要: 简单题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;#define maxn 105char st1[maxn], st2[maxn];int getans(char *st1, char *st2){ int len1 = strlen(st1); int len2 = strlen(st2); for (int i = 0; i < len1; i++) { bool ok = t 阅读全文
posted @ 2011-08-06 11:59 undefined2024 阅读(189) 评论(1) 推荐(0)
摘要: 简单题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;#define maxn 105int n, d;bool vis[maxn];int main(){ //freopen("t.txt", "r", stdin); while (scanf("%d%d", &n, &d), n | d) { memset(vis 阅读全文
posted @ 2011-08-06 11:38 undefined2024 阅读(285) 评论(0) 推荐(0)