QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505473#5870. A.I. Warxiaowuc132 ✓110ms4432kbC++172.6kb2024-08-05 05:36:592024-08-05 05:37:00

詳細信息

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 2ms
memory: 4272kb

input:

50
2 1
0,1
3 3
0,1 1,2 0,2
5 5
0,4 0,2 2,4 1,2 1,4
7 9
0,6 0,2 0,4 2,4 3,4 2,3 3,5 4,5 1,5
5 5
3,4 1,4 0,2 0,3 1,2
28 147
9,27 14,27 5,18 5,25 14,17 15,20 10,24 13,21 11,26 1,13 0,10 0,14 5,21 10,27 5,20 1,9 11,24 10,22 7,27 5,23 7,25 10,18 8,23 8,20 12,27 7,22 1,4 11,18 14,21 0,8 15,23 9,24 6,23 11...

output:

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

result:

ok 50 lines

Subtask #2:

score: 22
Accepted

Test #2:

score: 22
Accepted
time: 110ms
memory: 4432kb

input:

50
305 588
115,116 94,97 145,149 46,49 298,300 65,67 51,56 3,5 228,231 102,104 6,9 214,215 69,72 148,150 27,29 42,44 115,117 38,40 286,287 129,131 129,130 85,88 40,43 209,211 222,226 235,237 179,181 118,119 113,118 234,238 176,178 245,247 67,70 199,201 153,155 255,259 154,156 66,69 108,112 290,292 5...

output:

Case #1: 119 184
Case #2: 3 121
Case #3: 84 128
Case #4: 124 184
Case #5: 3 338
Case #6: 3 364
Case #7: 3 205
Case #8: 3 215
Case #9: 3 250
Case #10: 3 355
Case #11: 3 216
Case #12: 2 46
Case #13: 33 50
Case #14: 3 297
Case #15: 0 1
Case #16: 4 12
Case #17: 3 251
Case #18: 3 248
Case #19: 2 22
Case ...

result:

ok 50 lines

Extra Test:

score: 0
Extra Test Passed