HDU 2147 kiki's game

/*Accepted 2147 0MS 200K 173 B C++ Yu */

#include <stdio.h>

//n和m不同为奇数,先手胜

int main()

{

    int n, m;

    while(scanf("%d%d", &n, &m), n + m)

    {

        puts( ((n & 1) && (m & 1))? "What a pity!" : "Wonderful!");

    }

    return 0;

}

 

你可能感兴趣的:(game)