
数学
fyfcauc
这个作者很懒,什么都没留下…
展开
-
poj-2140
//132K 110MS C++ #include #include using namespace std; int N; long long cnt; void solve(int N) { int begin = 1; int end = 1; long long sum = 1; while(1) { if (begin == N) { if (sum =原创 2014-09-20 19:19:26 · 485 阅读 · 0 评论 -
poj-1930
//144K 0MS C++ #include #include #include int gcd(int a, int b) { if (b == 0) { return a; } else if (a > b) { return gcd(b, a%b); } else { return gcd(a, b%a);原创 2014-09-22 18:24:36 · 492 阅读 · 0 评论