QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505464#5816. Theme Parkxiaowuc133 ✓3ms3984kbC++172.3kb2024-08-05 05:34:092024-08-05 05:34:09

详细

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 0ms
memory: 3636kb

input:

50
4 6 4
1 4 2 1
100 10 1
1
5 5 10
2 4 2 3 4 2 1 2 1 3
1 1 1
1
100 2 2
1 2
1000 100 10
4 3 9 1 2 5 6 9 1 10
1 10 10
4 3 4 1 2 5 6 9 1 10
1 10 9
1 1 1 1 1 1 1 1 1
1000 10 9
1 1 1 1 1 1 1 1 1
934 9 10
8 8 8 8 8 8 8 8 8 8
734 3 10
1 2 3 3 2 1 1 2 3 1
345 19 10
10 10 10 10 10 10 10 10 10 10
765 10 10
10...

output:

Case #1: 21
Case #2: 100
Case #3: 20
Case #4: 1
Case #5: 150
Case #6: 50000
Case #7: 7
Case #8: 9
Case #9: 9000
Case #10: 7472
Case #11: 1994
Case #12: 3450
Case #13: 4212
Case #14: 100000
Case #15: 13448
Case #16: 8669
Case #17: 17
Case #18: 37
Case #19: 15
Case #20: 47
Case #21: 4410
Case #22: 214...

result:

ok 50 lines

Subtask #2:

score: 23
Accepted

Test #2:

score: 23
Accepted
time: 3ms
memory: 3984kb

input:

50
4 6 4
1 4 2 1
100 10 1
1
5 5 11
2 4 2 3 4 2 1 2 1 3 4
100000000 2 2
1 2
1000000 200 11
43 34 39 11 22 35 46 59 16 13 34
1 10 10
4 3 4 1 2 5 6 9 1 10
10000000 10 15
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1000 10 9
1 1 1 1 1 1 1 1 1
934 99 10
98 98 98 98 98 98 98 98 98 98
454 7 10
1 2 3 3 2 1 1 2 3 1
999999...

output:

Case #1: 21
Case #2: 100
Case #3: 20
Case #4: 150000000
Case #5: 176000000
Case #6: 7
Case #7: 100000000
Case #8: 9000
Case #9: 91532
Case #10: 2875
Case #11: 500000094999999
Case #12: 500000079999996
Case #13: 499999940000001
Case #14: 113087997527322
Case #15: 100000000000000000
Case #16: 15000000...

result:

ok 50 lines

Extra Test:

score: 0
Extra Test Passed