QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505429#5799. Bribe the Prisonersxiaowuc150 ✓2816ms3976kbC++171.1kb2024-08-05 05:18:392024-08-05 05:18:40

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 15
Accepted

Test #1:

score: 15
Accepted
time: 1ms
memory: 3572kb

input:

100
8 1
3
20 3
3 6 14
1 1
1
2 2
1 2
3 3
1 2 3
4 4
1 2 3 4
5 5
1 2 3 4 5
16 2
12 14
18 3
2 3 6
85 4
3 24 42 57
14 2
8 9
37 2
2 10
91 5
19 28 54 65 90
89 3
42 55 83
89 2
43 79
33 5
1 10 18 30 33
40 1
31
76 3
11 48 66
41 5
13 15 21 24 40
19 4
8 10 13 15
63 4
14 16 32 37
22 1
4
62 5
20 22 23 26 27
52 4
...

output:

Case #1: 7
Case #2: 35
Case #3: 0
Case #4: 1
Case #5: 2
Case #6: 4
Case #7: 6
Case #8: 18
Case #9: 22
Case #10: 188
Case #11: 18
Case #12: 44
Case #13: 229
Case #14: 167
Case #15: 133
Case #16: 72
Case #17: 39
Case #18: 148
Case #19: 93
Case #20: 36
Case #21: 130
Case #22: 21
Case #23: 94
Case #24: ...

result:

ok 100 lines

Subtask #2:

score: 35
Accepted

Test #2:

score: 35
Accepted
time: 2816ms
memory: 3976kb

input:

100
8 1
3
20 3
3 6 14
1 1
1
2 2
1 2
3 3
1 2 3
4 4
1 2 3 4
5 5
1 2 3 4 5
2416 7
604 958 1300 1389 1405 1858 2335
2178 26
10 31 54 79 201 288 391 513 752 803 844 869 877 904 945 959 1062 1147 1155 1273 1492 1540 1785 2031 2096 2127
432 89
15 19 20 25 30 38 46 48 55 57 79 80 84 86 88 89 92 98 101 102 1...

output:

Case #1: 7
Case #2: 35
Case #3: 0
Case #4: 1
Case #5: 2
Case #6: 4
Case #7: 6
Case #8: 6732
Case #9: 9402
Case #10: 2504
Case #11: 29189
Case #12: 20992
Case #13: 1262
Case #14: 7309
Case #15: 44953
Case #16: 26310
Case #17: 7601
Case #18: 4591
Case #19: 40888
Case #20: 26774
Case #21: 16850
Case #2...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed