QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505573#5964. Haircutxiaowuc133 ✓18ms3564kbC++171.9kb2024-08-05 06:10:322024-08-05 06:10:34

详细

Subtask #1:

score: 11
Accepted

Test #1:

score: 11
Accepted
time: 1ms
memory: 3552kb

input:

100
2 4
10 5
3 12
7 7 7
3 12
4 2 1
5 1000000000
25 25 25 25 25
2 2
1 1
5 5
1 1 1 1 1
5 448257424
1 2 3 4 5
5 915742169
18 7 21 11 25
5 583476611
17 17 17 17 17
5 298896849
11 11 11 11 11
5 455822294
14 14 14 14 14
5 907071469
4 4 4 4 4
5 5066840
4 4 4 4 4
5 130533849
5 5 5 5 5
5 720211345
6 6 6 6 6
...

output:

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

result:

ok 100 lines

Subtask #2:

score: 22
Accepted

Test #2:

score: 22
Accepted
time: 18ms
memory: 3564kb

input:

100
2 4
10 5
3 12
7 7 7
3 12
4 2 1
1000 1000000000
100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 100000 1000...

output:

Case #1: 1
Case #2: 3
Case #3: 2
Case #4: 1000
Case #5: 2
Case #6: 5
Case #7: 1
Case #8: 4
Case #9: 611
Case #10: 849
Case #11: 294
Case #12: 469
Case #13: 840
Case #14: 849
Case #15: 345
Case #16: 644
Case #17: 581
Case #18: 767
Case #19: 658
Case #20: 72
Case #21: 661
Case #22: 803
Case #23: 390
C...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed