摘要:
简单题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <algorithm>using namespace std;#define maxn 30char order[maxn];char st[maxn];int l;void work(char ch){ char x; int d; switch (ch) { case 'J': x = st[l - 1]; for (int i 阅读全文
posted @ 2011-07-23 09:41
undefined2024
阅读(176)
评论(0)
推荐(0)
摘要:
简单题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;#define maxn 1005int f[maxn];int n;bool vis[maxn];int gcd(int x, int y){ if (!x || !y) return x > y ? x : y; for (int t; t = x %y; x = y, y = t); return y;}int main(){ 阅读全文
posted @ 2011-07-23 08:46
undefined2024
阅读(207)
评论(0)
推荐(0)