ACM/ICPC集训队专题训练第七场--博弈

G: Black and white chess