//101010101
//000000000
//101010101
//000000000
//101010101
//000000000
//101010101
//000000000
//101010101
//当m , n在1时,是zz赢
//因为起点在1点时,kiki走一步肯定是走到0处,而zz一定又能走到1
//故左下角的1肯定是zz走到
//如果m,n在0,那么左下角的1肯定是kiki走到
#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std ;
int main()
{
int n , m;
while(scanf("%d%d" ,&n ,&m)&&(n+m))
{
if(m%2 && n%2)printf("What a pity!\n") ;
else printf("Wonderful!\n") ;
}
return 0;
}
hdu2147kiki's game 博弈
时间: 2024-10-11 03:30:37