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

建议使用的浏览器:

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

7216:Triangle Game

题目描述
Kate and Emilico are playing a game. There are $3$ integers $a,b,c$. It is guaranteed that there exists a non-degenerate triangle whose side lengths are $a,b,c$ respectively. The game goes as follows. Players take turns in decreasing a certain positive integer on one of the $3$ integers. If there doesn't exist a non-degenerate triangle whose side lengths are $a,b,c$ after a player's operation, the player loses.

Kate goes first. If both of them play optimally, will Kate win?
输入解释
The first line of input contains one integer $T$ ($1\le T\le 10^4$), indicating the number of test cases.

For each test case, the only line contains $3$ integers $a,b,c$ ($1\le a,b,c\le 10^9$). It is guaranteed that there exists a non-degenerate triangle whose side lengths are $a,b,c$ respectively.
输出解释
For each test case, if Kate will win, output $\texttt{Win}$ in a single line. Otherwise, output $\texttt{Lose}$ in a single line.
输入样例
3
2 2 3
2 3 4
5 3 4
输出样例
Win
Lose
Win

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

源链接: HDU-7216

最后修改于 2022-09-15T06:17:27+00:00 由爬虫自动更新

共提交 0

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