QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505513#5908. Fair and Squarexiaowuc1100 ✓310ms16364kbPython31.5kb2024-08-05 05:51:212024-08-05 05:51:21

详细

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 247ms
memory: 16364kb

input:

100
187 844
121 484
4 104
3 484
121 221
384 742
484 742
3 5
274 683
1 221
685 923
10 120
1 65
3 122
1 1000
21 485
1 5
7 584
120 302
142 631
919 920
7 10
7 9
303 584
488 766
1 10
1 121
121 742
118 639
7 121
135 516
13 684
695 796
121 122
330 352
1 9
57 823
3 109
21 584
3 6
3 104
483 485
343 976
4 584...

output:

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

result:

ok 100 lines

Subtask #2:

score: 35
Accepted

Test #2:

score: 35
Accepted
time: 310ms
memory: 16312kb

input:

10000
125686421 1004006004002
12320 1004006004002
1234320 1210024200121
21 1211124711121
2621163 1000002000002
12221 12102420122
10221412101 1001002501001
400079904 1001002501001
44844 44944
12221 124570421
10110806101 1020304030202
10101 404090504
4008003 12345654321
1118161 1234322
1021314631201 4...

output:

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

result:

ok 10000 lines

Subtask #3:

score: 55
Accepted

Test #3:

score: 55
Accepted
time: 262ms
memory: 16324kb

input:

1000
12100220001002200022200020122002820022102000222000220010002200120 12100220001002202222220020122202920222102002222220220010002200121
12321022202230224024942042203220222012221 12321122101615123124892132101615122112321
1000000000000020000020000020100020200000300000600000300000202000102000002000001...

output:

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

result:

ok 1000 lines

Extra Test:

score: 0
Extra Test Passed