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;
}
posted @ 2014-04-20 14:43  forever97  阅读(109)  评论(0编辑  收藏  举报