HDU 2147 kiki's game

题解:画图可得当横纵坐标均为奇数时为必败态……

              hdu-2147:kikis game - 陈年往事 - 我学acm 的博客

#include <cstdio>

int main(){

    int a,b;

    while(scanf("%d%d",&a,&b),a!=0&&b!=0){

        a%=2; b%=2;

        if(a&&b)puts("What a pity!");

        else puts("Wonderful!");

    }

    return 0;

}

你可能感兴趣的:(game)