kiki's game HDU - 2147(找规律)

#include"stdio.h"

int main( )
{
    int n,m;
    while(scanf("%d%d",&n,&m)&&(n!=0||m!=0))
    {
        if(n%2==0||m%2==0)
            printf("Wonderful!\n");
        else
            printf("What a pity!\n");
    }
    return 0;
}

这题我没交  感觉有点水吧。。。记下来 复习看看  https://cn.vjudge.net/problem/HDU-2147

只有再行和列都为奇数时 先手才赢

猜你喜欢

转载自www.cnblogs.com/WTSRUVF/p/9339555.html