当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

2219:God's Birthday

题目描述
Do you know God's birthday?
Stupid Wiskey and Michelle say they didn't knew.
Now, Gods want to make a game let them guess the answer.
This game is a two-player alternative game and is played as follows:
1.God tell the month to Wiskey, and tell the day to Michelle.
2.There are many dates in a list, Wiskey and Michelle must choose the date from the list.
3.Wiskey guesses first, then Michelle and alternative to reply YES or NO, if he/she konws the answer, he/she will say YES, or he/she will say NO.
4.Who first know God's birthday when is his/her turn and his/her answer is right, he/she is the winner.
Your task is telling me who will win, Wiskey or Michelle?
输入解释
First line will contain one integer means how many cases will follow by.
Each line will contain three integers N, M, D.
N represents the number of dates God tell them. (1 <= N <= 365)
M, D represent God's birthday is the M-th month, the D-th day. (1 <= M <= 12, 1 <= D <= 31)
输出解释
If Wiskey win, print "Wiskey Win".
If Michelle wins, print "Michelle Win".
Else print "No" if nobody will win the game.
输入样例
4

3 12 25
12 25
10 25
11 25

3 12 25
12 25
12 23
12 24

4 12 25
11 25
11 25
12 24
12 24
 
3 12 25
11 25
12 25
12 24
输出样例
Wiskey Win
Michelle Win
No
Michelle Win

提示
In the first case, Wiskey knows the month is 12, 
and the list have only date 12.25, so Wiskey will win.

In the second case, theie are three dates in December, 
so Wiskey can't decide which one is right, he must say NO. 
When is Michelle's turn, she knows the day is 25, so she will win.

In the third case, nobody will win the game, the answer is "No".

In the fourth case, 12.25 and 12.24 are in December, so Wiskey says NO. 
Michelle thinks if the month is 11, Wiskey must knew the answer, 
but he said NO, so the month must be 12, so Michelle knows the answer is 12.25.
来自杭电HDUOJ的附加信息
Author Wiskey
Recommend lcy

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-2219

最后修改于 2020-10-25T22:51:34+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/1000MS(Java/Others) 65536/32768K(Java/Others)