QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505396#5785. Mine Layerxiaowuc117 ✓2ms3712kbC++171.6kb2024-08-05 05:04:292024-08-05 05:04:29

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 4
Accepted

Test #1:

score: 4
Accepted
time: 0ms
memory: 3708kb

input:

43
3 3
3 3 1
4 4 2
2 2 1
5 3
4 6 4
5 8 5
5 7 4
4 6 4
3 4 3
5 3
2 4 3
3 5 4
4 5 4
5 6 4
4 5 3
3 5
4 6 6 6 4
6 9 8 8 5
4 6 5 5 3
5 4
3 5 6 4
5 8 9 6
4 6 8 5
5 7 8 5
3 4 5 3
3 5
2 3 2 4 3
3 5 5 7 5
2 4 4 5 3
5 5
4 6 6 5 3
6 9 9 8 5
4 7 8 9 6
4 7 8 8 5
2 4 5 5 3
5 4
0 0 0 0
1 1 1 0
3 3 2 0
4 5 4 1
3 4 3...

output:

Case #1: 1
Case #2: 2
Case #3: 1
Case #4: 5
Case #5: 4
Case #6: 3
Case #7: 5
Case #8: 1
Case #9: 4
Case #10: 1
Case #11: 3
Case #12: 4
Case #13: 1
Case #14: 4
Case #15: 4
Case #16: 3
Case #17: 1
Case #18: 0
Case #19: 1
Case #20: 1
Case #21: 5
Case #22: 3
Case #23: 0
Case #24: 0
Case #25: 1
Case #26:...

result:

ok 43 lines

Subtask #2:

score: 13
Accepted

Test #2:

score: 13
Accepted
time: 2ms
memory: 3712kb

input:

50
49 49
3 5 4 5 3 2 2 3 4 4 3 4 4 5 5 5 5 5 4 3 3 3 4 3 3 4 3 3 3 3 3 2 3 4 4 3 1 0 1 3 5 5 5 5 6 6 5 4 2
4 7 6 6 4 4 4 5 6 7 6 7 6 6 6 6 6 5 5 4 5 5 6 4 4 5 4 3 3 3 4 4 6 7 7 6 3 2 2 4 6 6 7 7 9 9 8 7 4
3 5 3 4 4 6 5 6 6 7 6 7 7 7 6 5 3 3 5 6 6 5 4 4 5 6 4 1 2 3 4 5 5 7 6 6 4 4 5 6 7 6 7 6 7 7 6 7...

output:

Case #1: 23
Case #2: 3
Case #3: 20
Case #4: 13
Case #5: 10
Case #6: 6
Case #7: 20
Case #8: 9
Case #9: 9
Case #10: 19
Case #11: 5
Case #12: 23
Case #13: 21
Case #14: 0
Case #15: 32
Case #16: 14
Case #17: 27
Case #18: 2
Case #19: 22
Case #20: 17
Case #21: 3
Case #22: 23
Case #23: 2
Case #24: 9
Case #2...

result:

ok 50 lines

Extra Test:

score: 0
Extra Test Passed