QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#96868#6135. BooksZhangYiDeWA 71ms10104kbC++142.6kb2023-04-15 17:01:402023-04-15 17:01:43

詳細信息

Test #1:

score: 100
Accepted
time: 3ms
memory: 7396kb

input:

4
4 2
1 2 4 8
4 0
100 99 98 97
2 2
10000 10000
5 3
0 0 0 0 1

output:

6
96
Richman
Impossible

result:

ok 4 lines

Test #2:

score: -100
Wrong Answer
time: 71ms
memory: 10104kb

input:

10012
1 0
2
3 2
0 1 0
2 1
0 0
100000 99999
1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000...

output:

1
Impossible
Impossible
99999999999999
192
Impossible
Richman
Impossible
460
Richman
Impossible
163
Impossible
Impossible
Impossible
Richman
Richman
Richman
3
Richman
Richman
382
98
Impossible
Impossible
Impossible
Impossible
Impossible
4
297
Richman
Richman
Richman
3
Impossible
Impossible
160
Impos...

result:

wrong answer 2nd lines differ - expected: '0', found: 'Impossible'