QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505491#5897. Perfect Gamexiaowuc110 ✓4ms3828kbC++172.4kb2024-08-05 05:44:312024-08-05 05:44:32

详细

Subtask #1:

score: 3
Accepted

Test #1:

score: 3
Accepted
time: 1ms
memory: 3556kb

input:

100
4
1 1 1 1
50 0 20 20
12
1 1 1 1 1 1 1 1 1 1 1 1
50 81 36 75 67 71 60 52 25 5 30 49
10
1 1 1 1 1 1 1 1 1 1
43 19 43 19 64 43 96 33 33 98
2
1 1
53 46
1
1
11
2
1 1
34 50
5
1 1 1 1 1
81 81 81 81 81
2
1 1
90 90
1
1
71
4
1 1 1 1
36 36 36 36
17
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
58 78 80 97 78 99 31 80 ...

output:

Case #1: 0 2 3 1
Case #2: 1 3 5 4 6 7 0 11 2 10 8 9
Case #3: 9 6 4 0 2 5 7 8 1 3
Case #4: 0 1
Case #5: 0
Case #6: 1 0
Case #7: 0 1 2 3 4
Case #8: 0 1
Case #9: 0
Case #10: 0 1 2 3
Case #11: 5 11 3 13 15 16 2 7 8 1 4 10 0 12 14 9 6
Case #12: 6 1 0 5 3 8 2 7 4
Case #13: 0 1 2 3 4 5 6 7 8
Case #14: 0
Ca...

result:

ok 100 lines

Subtask #2:

score: 7
Accepted

Test #2:

score: 7
Accepted
time: 4ms
memory: 3828kb

input:

100
4
1 1 1 1
50 0 20 20
3
100 10 1
0 50 0
3
100 80 50
40 20 80
130
78 60 72 82 16 81 89 83 28 6 89 75 40 62 96 86 46 25 88 66 58 46 19 53 91 39 17 97 73 49 45 88 100 94 96 79 35 1 35 65 67 54 75 25 67 19 44 28 3 32 6 16 92 39 83 22 41 59 45 90 59 63 88 51 50 24 9 29 19 35 42 53 87 7 12 12 61 89 72 ...

output:

Case #1: 0 2 3 1
Case #2: 1 0 2
Case #3: 2 0 1
Case #4: 37 102 87 99 73 9 74 75 51 117 86 122 68 50 65 94 108 110 66 81 49 4 67 38 25 70 95 8 47 101 17 48 26 127 30 58 36 118 100 103 23 71 104 97 109 96 20 125 1 90 91 53 98 44 22 21 41 106 57 60 5 121 89 42 105 40 56 33 10 77 78 112 2 119 107 116 27...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed