摘要:
简单题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>#include <algorithm>using namespace std;#define maxn 1005int n;long long sum, f[maxn], f1[maxn];int main(){ //freopen("t.txt", "r", stdin); whi 阅读全文
posted @ 2011-07-07 21:31
undefined2024
阅读(405)
评论(0)
推荐(0)
摘要:
简单题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;#define maxn 50int n;char st[maxn];char match[1000];bool p, m;bool isp(){ for (int i = 0; i < n / 2; i++) if (st[i] != st[n - i - 1]) return false; return true;}bool is 阅读全文
posted @ 2011-07-07 13:39
undefined2024
阅读(177)
评论(0)
推荐(0)
摘要:
简单题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;#define maxn 1005int f[maxn], g[maxn], n;void input(){ for (int i = 0; i < n; i++) scanf("%d", &f[i]);}void work(){ int ans = 0; while (1) { ans++; for (i 阅读全文
posted @ 2011-07-07 13:17
undefined2024
阅读(178)
评论(0)
推荐(0)