摘要:
同1338View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>using namespace std;#define maxn 6000#define inf 0x3f3f3f3flong long f[maxn];int pos[4], fac[4];char* make(int a, char *st){ if (a % 10 == 1 && a % 100 != 11) strcpy(st, "st&qu 阅读全文
posted @ 2013-01-12 23:07
undefined2024
阅读(238)
评论(0)
推荐(0)
摘要:
模拟View Code #include <iostream>#include <cstdlib>#include <cstdio>#include <cstring>using namespace std;#define maxn 30struct Matrix{ int x, y;} matrix[maxn];int n, ans;bool error;void input(){ scanf("%d", &n); getchar(); for (int i = 0; i < n; i++) { char ch 阅读全文
posted @ 2013-01-12 22:40
undefined2024
阅读(159)
评论(0)
推荐(0)
摘要:
BFSView Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <queue>using namespace std;#define maxn 10struct Point{ int x, y;}s, t;int dir[8][2] = {{1, 2}, {1, -2}, {-1, 2}, {-1, -2}, {2, 1}, {-2, 1}, {2, -1}, {-2, -1}};bool in_bound(Po 阅读全文
posted @ 2013-01-12 15:10
undefined2024
阅读(243)
评论(0)
推荐(0)

浙公网安备 33010602011771号