摘要: 简单题View Code #include <iostream>#include <cstdlib>#include <cstdio>#include <cstring>#include <cmath>using namespace std;#define maxn 55int n;int f[maxn];int gcd(int a, int b){ if (b > 0) return gcd(b, a % b); return a;}void input(){ for (int i = 0; i < n; i++) sc 阅读全文
posted @ 2013-02-26 13:50 undefined2024 阅读(202) 评论(0) 推荐(0)
摘要: 简单题View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;#define maxn 32int f[maxn];int g[maxn];int main(){// freopen("t.txt", "r", stdin); while (1) { int n = 0; int a; while (scanf("%d", &a), 阅读全文
posted @ 2013-02-26 13:48 undefined2024 阅读(143) 评论(0) 推荐(0)