摘要: http://poj.org/problem?id=2996题意很难理解。给你一个棋盘,分白黑双方,白的用大写字母表示,黑的用小写字母表示。("K" (King), "Q" (Queen), "R" (Rook), "B" (Bishop), "N" (Knight), or "P" (Pawn))然后给出位置的描述方法:a,b,c,d,e,f,g,h分表代表列 1--8 分别代表行。然后进行描述。注意:这里的矩形,最下边是第一行。还有对于白色,同一个棋子行数小得先表示例如样 阅读全文
posted @ 2012-02-26 11:11 E_star 阅读(237) 评论(0) 推荐(0)
摘要: http://poj.org/problem?id=1573一个原来做过的模拟题,大早上做题就是头脑清楚啊。1Y..呵呵。。View Code #include <iostream>#include <cstring>#include <cstdio>#define maxn 107using namespace std;char str[maxn][maxn];bool visit[maxn][maxn];//标记是否已经走过int map[maxn][maxn];//存储到达ij这点时走了多少步int main(){ int n,m,s,i,j; int 阅读全文
posted @ 2012-02-26 09:49 E_star 阅读(215) 评论(0) 推荐(0)