IT民工
加油!
/*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;
}

 

posted on 2012-10-20 11:53  找回失去的  阅读(107)  评论(0编辑  收藏  举报