408195: GYM103049 E Endgame

Memory Limit:1024 MB Time Limit:3 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

E. Endgametime limit per test3 secondsmemory limit per test1024 megabytesinputstandard inputoutputstandard outputExamplesInput
2
2 1
1 2
1 0
0 -1
Output
Bob wins
Input
3
2 3
1 3
-2 1
1 1
1 0
Output
tie 3 2
Input
4
1 1
3 4
0 3
2 0
0 -3
-2 0
Output
Alice wins

加入题单

上一题 下一题 算法标签: