题解:画图可得当横纵坐标均为奇数时为必败态……
#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; }