pawnchess专题

Codeforces Round #328 (Div. 2)Problem A. PawnChess(模拟)

题目连接 题意:一个8*8的棋盘,A,B两个人下棋,每次是A先手,A希望最早把W移到第一排,B希望能最早把B移到最后一行,每次只能移动一步,且只能移到空的位置,问谁赢。 解法:直接模拟 #include<bits/stdc++.h>using namespace std;#define LL long long#define pb push_back#define P pair<in