1002: Brilliant Programmers Show
Memory Limit:64 MB
Time Limit:6.000 S
Judge Style:Text Compare
Creator:
Submit:15
Solved:2
Description
不允许普通用户打印题目,请教师登录后使用。如有疑问请联系管理员!
Input
There are multiple test cases.
Each test case is described in two lines. The first line contains one integer N: the number of programmers. The second line contains a sequence of integers Aithat gives the number of successful challenges of the programmer initially ranked i-th.
1 <= N <= 106, 0 <= Ai <= 109
The input will finish with the end of file.
Each test case is described in two lines. The first line contains one integer N: the number of programmers. The second line contains a sequence of integers Aithat gives the number of successful challenges of the programmer initially ranked i-th.
1 <= N <= 106, 0 <= Ai <= 109
The input will finish with the end of file.
Output
For each case the output contains only one line.
If it is an impossible show, output “Bad Rescue”. Otherwise if the champion is uniquely determined, output the initial rank of the champion. Output “Unknown” if the champion is not sure.
If it is an impossible show, output “Bad Rescue”. Otherwise if the champion is uniquely determined, output the initial rank of the champion. Output “Unknown” if the champion is not sure.
Sample Input Copy
2
0 1
3
0 1 5
3
0 1 1
Sample Output Copy
2
Bad Rescue
Unknown