Dueling Club
Ограничения: время – 250ms/500ms, память – 256MiB Ввод: input.txt или стандартный ввод Вывод: output.txt или стандартный вывод
Послать решение Blockly Посылки Темы Где Обсудить (0)
Astoria Crickett, Bella Jenkins, and Constance Dagworth reached the final of the club tournament.
To determine the winner, each player must fight with others. Each pair of players fight exactly once.
The fights are held by lot in random order.
Let the initial mana of the players be `X` and `Y`, then, after the fight, the mana of both the players reduces by `min(X,Y)`.
The winner is the one who will have non-zero mana after three fights.
Determine if Astoria can win the tournament.
The first line of input contains three space-separated integers
`A`, `B`, and `C` (`1 <= A, B, C <= 1000`) -- the initial mana of Astoria, Bella, and Constance respectively.
Print "Sure" if Astoria wins regardless of the order of the fights,
print "Maybe" if there is an order of fights in which Astoria will win,
otherwise print "Never".
```sample Sample input #1
5 1 4
```
```sample Sample output #1
Maybe
```
Explanation: Constance defeats Bella, then Astoria defeats Bella and Constance,
she has 2 mana remaining. If the order of fights is Astoria-Constance, Astoria-Bella, Bella-Constance, then
Astoria will have 0 mana.
```sample Sample input #2
5 1 1
```
```sample Sample output #2
Sure
```
```sample Sample input #3
1 2 4
```
```sample Sample output #3
Never
```