传统题 1000ms 256MiB

Win?

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Description

Alice and Bob are playing a duel game, where the outcome is determined solely by their combat power. Let’s see the following scenarios:

  • Day 1: Alice has a combat power of 6, Bob has 5. Since Alice’s combat power is higher than Bob’s, Alice wins and will say "Win".

  • Day 2: Alice has 6, Bob has 500. Alice’s combat power is lower, but she has a friend Candy with a combat power of 1000. Alice argues that since Bob didn’t beat Candy, Bob loses — so Alice wins and will say "WIN".

  • Day 3: Alice has 6, Bob has 5000, and Candy has 1000. Neither Alice nor Candy has a higher combat power than Bob. Alice can’t win in any way, so she will say "nowin".

Given three integers aa, bb, and cc representing the combat powers of Alice, Bob, and Candy respectively, determine the output based on these rules:

  • If a>ba > b (Day 1’s scenario), output "Win".

  • Otherwise, if c>bc > b (Day 2’s scenario), output "WIN".

  • In all other cases, output "nowin".

Input Format

The first line contains an integer TT — the number of test cases.

Each test case consists of a single line with three integers aa, bb, cc .

1T100,0a,b,c1091 \leq T \leq 100,0 \leq a, b, c \leq 10^9

Output Format

For each test case, output a single line containing the answer. Note that the answer is case-sensitive (i.e., "Win", "WIN", and "nowin" are distinct).

Sample Input

5
6 5 1000
6 500 1000
6 5000 1000
1234 4009 4039
6 6 6

Sample Output

Win
WIN
nowin
WIN
nowin

2025XCPC集训队&&算法培训 — 综合训练(一)

未参加
状态
已结束
规则
ACM/ICPC
题目
5
开始于
2025-8-22 19:00
结束于
2025-8-22 22:00
持续时间
3 小时
主持人
参赛人数
21