QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505509#5910. Bullseyexiaowuc124 ✓123ms10632kbPython3891b2024-08-05 05:50:222024-08-05 05:50:22

详细

Subtask #1:

score: 11
Accepted

Test #1:

score: 11
Accepted
time: 25ms
memory: 10620kb

input:

1000
15 302
12 565
97 395
27 245
150 607
77 477
219 882
181 730
163 658
30 891
9 19
137 275
152 305
102 205
219 439
1 1000
38 332
38 331
38 333
38 396
43 927
43 926
43 928
43 936
218 437
218 706
279 559
279 831
224 449
224 564
195 391
195 569
5 893
5 892
5 894
5 935
258 517
258 958
356 713
356 965
9...

output:

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

result:

ok 1000 lines

Subtask #2:

score: 13
Accepted

Test #2:

score: 13
Accepted
time: 123ms
memory: 10632kb

input:

6000
334024270280408737 1336097081121634955
26082562636610375 156495375819662266
158010803850943274 1264086430807546221
353375225382378237 1413500901529512955
83757814997854363 1842671929952796218
202790353757729950 811161415030919806
155646380544754804 622585522179019222
18939616890015759 106061854...

output:

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

result:

ok 6000 lines

Extra Test:

score: 0
Extra Test Passed