摘要: #include #include #include #include #include using namespace std;map p;map q;int a, b;char n[1000];void init(){ for (int i = 0; i 0 ) toB( d / b ); printf("%c", q[d % b]);}int main(){ // freopen("1.txt", "r", stdin); init(); while ( scanf("%d%s%d", &a, n, 阅读全文
posted @ 2013-09-17 20:51 Sinker 阅读(200) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std;const int MAXN = 101;typedef struct { int c[3]; int cnt;}state;queue q;int s[3];bool vis[MAXN][MAXN][MAXN];int dir[6][2] = { {0,1}, {1,0}, {0,2}, {2,0}, {1,2}, {2,1} };bool ok(state x){ ... 阅读全文
posted @ 2013-09-17 20:17 Sinker 阅读(223) 评论(0) 推荐(0) 编辑