摘要:
简单题View Code #include <iostream>#include <cstdlib>#include <cstdio>#include <cstring>using namespace std;#define maxn 10001bool is_self[maxn];int generate(int a){ int ret = a; while (a) { ret += a % 10; a /= 10; } return ret;}int main(){ for (int i = 1; i < maxn; i++)... 阅读全文
posted @ 2013-01-16 08:36
undefined2024
阅读(225)
评论(0)
推荐(0)
摘要:
枚举View Code #include<iostream>#include<algorithm>using namespace std;struct point{ char ss; int x, y;};struct direction{ char ul, ur, lr, ll;};direction dir[100];point p[30];int sum;int cmp(point a, point b){ if (a.x != b.x) return a.x < b.x; else return a.y < b.y;}int c... 阅读全文
posted @ 2013-01-16 08:22
undefined2024
阅读(196)
评论(0)
推荐(0)

浙公网安备 33010602011771号