摘要:
简单题View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>using namespace std;int n;long long gcd(long long x, long long y){ if (!x || !y) return x > y ? x : y; for (long long t; t = x % y; x = y, y = t); return y;}void input(){ long long ans = 1 阅读全文
posted @ 2011-10-09 12:17
undefined2024
阅读(185)
评论(0)
推荐(0)
摘要:
简单排序,但是由于读入量过大,要用getchar()按位读入数字。View Code #include <iostream>#include <cstdlib>#include <cstring>#include <cstdio>#include <algorithm>using namespace std;#define maxn 1000005int n;int f[maxn];int in(){ char ch = '0'; int ret = 0; while (ch <= '9' &am 阅读全文
posted @ 2011-10-09 10:53
undefined2024
阅读(225)
评论(0)
推荐(0)