QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505534#5932. Magic Trickxiaowuc1AC ✓13ms10600kbPython3513b2024-08-05 05:58:142024-08-05 05:58:14

详细

Test #1:

score: 6
Accepted
time: 13ms
memory: 10600kb

input:

100
4
14 6 1 5
16 13 9 2
3 12 7 8
4 15 10 11
3
12 7 10 9
8 1 15 3
4 11 2 14
13 5 6 16
4
12 10 7 8
9 11 16 5
15 4 13 14
3 6 2 1
2
1 16 13 9
3 7 2 6
11 4 15 10
12 14 5 8
4
6 4 11 5
15 1 14 10
16 2 3 12
8 9 13 7
2
11 14 2 5
12 3 1 15
10 13 8 4
6 7 9 16
2
13 3 16 2
9 5 4 10
7 14 6 1
8 11 12 15
2
6 16 10...

output:

Case #1: Bad magician!
Case #2: Bad magician!
Case #3: Volunteer cheated!
Case #4: 5
Case #5: 9
Case #6: Bad magician!
Case #7: Bad magician!
Case #8: Volunteer cheated!
Case #9: Bad magician!
Case #10: Volunteer cheated!
Case #11: Volunteer cheated!
Case #12: Volunteer cheated!
Case #13: Volunteer ...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed