QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505576#5960. Infinite House of Pancakesxiaowuc121 ✓30ms3792kbC++171.5kb2024-08-05 06:11:382024-08-05 06:11:38

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 9
Accepted

Test #1:

score: 9
Accepted
time: 1ms
memory: 3528kb

input:

100
1
3
4
1 2 1 2
1
4
5
4 5 1 1 3
3
1 4 7
3
5 9 8
5
9 9 9 9 9
3
3 2 1
4
8 9 7 7
3
8 5 2
3
9 2 9
3
5 9 6
3
9 9 9
5
5 4 3 2 1
3
2 4 6
5
5 1 4 4 3
5
4 3 4 1 5
4
7 6 4 1
3
9 4 3
4
2 2 5 7
4
4 3 2 1
6
1 1 5 5 9 9
2
9 9
4
4 9 6 9
3
4 8 4
1
9
6
5 6 9 6 9 6
4
9 9 9 9
5
1 1 1 1 4
6
6 5 4 3 2 1
2
6 6
3
8 5 1
...

output:

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

result:

ok 100 lines

Subtask #2:

score: 12
Accepted

Test #2:

score: 12
Accepted
time: 30ms
memory: 3792kb

input:

100
1
3
4
1 2 1 2
1
4
3
8 5 2
3
6 5 4
3
9 5 1
2
2 1
1000
726 749 77 344 215 593 174 923 856 155 911 389 446 220 542 944 904 570 864 400 369 180 222 46 895 589 92 74 262 881 596 185 170 441 327 728 527 123 486 392 829 787 25 24 490 759 377 60 458 465 664 338 907 277 25 832 148 894 633 803 226 782 79 ...

output:

Case #1: 3
Case #2: 2
Case #3: 3
Case #4: 6
Case #5: 6
Case #6: 6
Case #7: 2
Case #8: 990
Case #9: 7
Case #10: 4
Case #11: 100
Case #12: 5
Case #13: 100
Case #14: 8
Case #15: 391
Case #16: 140
Case #17: 136
Case #18: 993
Case #19: 6
Case #20: 990
Case #21: 988
Case #22: 100
Case #23: 5
Case #24: 4
C...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed