QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#390712#3733. 地铁ucup-team1383AC ✓133ms18272kbC++171.2kb2024-04-15 20:20:312024-04-15 20:20:32

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 7416kb

input:

2 1
1 2 1 1

output:

1

result:

ok 1 number(s): "1"

Test #2:

score: 0
Accepted
time: 3ms
memory: 5960kb

input:

500 2000
349 317 56 150
305 367 11 203
170 304 66 391
102 145 98 371
373 33 56 299
453 85 59 367
412 355 24 403
238 301 61 473
338 212 2 265
481 110 21 184
96 374 92 492
359 321 89 164
245 243 11 194
365 63 11 473
284 314 72 196
436 321 38 275
295 128 27 358
145 475 20 415
284 12 64 100
296 247 87 3...

output:

807

result:

ok 1 number(s): "807"

Test #3:

score: 0
Accepted
time: 0ms
memory: 6068kb

input:

500 2000
314 225 5 218
274 341 26 408
485 58 85 346
163 315 44 470
407 138 65 452
445 360 24 381
369 172 70 110
236 44 67 255
326 460 65 113
304 305 77 185
265 130 26 275
422 49 16 222
251 306 14 74
48 250 31 438
158 300 42 434
415 486 88 325
353 232 90 459
24 402 7 129
440 352 43 92
462 138 65 267
...

output:

302

result:

ok 1 number(s): "302"

Test #4:

score: 0
Accepted
time: 0ms
memory: 8164kb

input:

500 2000
172 456 43 391
276 130 54 165
381 460 29 400
470 97 94 338
246 192 1 403
355 208 73 399
254 116 29 124
362 397 26 77
424 157 23 5
471 424 77 196
149 134 11 468
86 193 40 162
50 440 51 42
81 231 50 224
372 465 43 307
58 452 16 76
97 244 78 255
235 256 67 321
31 234 47 227
421 180 15 137
72 4...

output:

529

result:

ok 1 number(s): "529"

Test #5:

score: 0
Accepted
time: 3ms
memory: 6020kb

input:

500 2000
152 441 18 475
20 488 64 424
452 319 45 1
468 368 87 476
394 268 86 473
98 98 96 63
90 291 74 375
312 328 87 95
151 464 26 206
351 5 93 86
2 287 64 479
363 180 75 391
50 446 76 206
492 351 12 91
75 287 100 347
145 402 51 441
35 347 69 26
104 493 2 150
201 122 8 380
41 41 78 206
388 155 94 4...

output:

490

result:

ok 1 number(s): "490"

Test #6:

score: 0
Accepted
time: 3ms
memory: 7772kb

input:

500 2000
58 58 29 475
45 198 43 122
111 477 37 193
57 169 44 247
428 353 26 86
364 498 74 498
416 40 19 119
259 377 18 327
91 200 31 335
165 145 57 109
461 461 85 103
282 452 24 227
479 474 81 11
56 491 58 57
442 442 88 178
349 284 49 135
297 447 4 297
133 328 92 198
52 138 46 424
239 383 19 233
117...

output:

493

result:

ok 1 number(s): "493"

Test #7:

score: 0
Accepted
time: 114ms
memory: 18200kb

input:

50000 100000
40192 23804 17447 9621
1570 10683 11150 35699
7479 163 2185 43718
8196 38715 44977 16615
3564 43385 14545 44583
1602 35591 46813 20550
24281 2679 175 18065
12482 44950 24866 12796
4068 6517 4019 7841
18247 28028 39909 30312
23301 445 30724 49992
152 3284 797 4718
28616 32003 14685 30844...

output:

88978275

result:

ok 1 number(s): "88978275"

Test #8:

score: 0
Accepted
time: 111ms
memory: 18196kb

input:

50000 100000
18396 13231 18538 15238
20045 115 9178 34785
28279 11220 11486 26853
45049 3518 18010 20823
271 27548 23901 22912
41123 41123 40443 8577
48394 21050 7372 39223
21752 49234 28867 14336
44934 44519 7681 17549
28564 15053 39147 16136
9430 18052 11882 39768
25053 28238 8818 41283
26264 4268...

output:

84358620

result:

ok 1 number(s): "84358620"

Test #9:

score: 0
Accepted
time: 106ms
memory: 18272kb

input:

50000 100000
20498 24078 23487 1982
27508 45029 34617 40848
5574 22191 30330 26576
27630 16408 46638 25823
1544 49089 23436 45635
13881 3240 31634 4542
47829 48399 16050 27355
36033 43569 32012 44251
34822 20092 38588 7536
43511 37333 2550 19992
26927 35920 30800 32349
29483 11338 49040 11595
14595 ...

output:

79791131

result:

ok 1 number(s): "79791131"

Test #10:

score: 0
Accepted
time: 123ms
memory: 18176kb

input:

50000 100000
42728 41216 31825 3779
22994 21648 33918 11249
10874 39642 7857 8830
15686 11748 40922 36676
40408 12313 17848 45066
22301 36265 15024 42702
1762 1762 43407 41026
34961 34961 22802 35396
13879 2199 28132 3105
3533 28086 49032 26826
40613 40613 36136 8728
27453 27453 19357 2349
9175 1474...

output:

78883368

result:

ok 1 number(s): "78883368"

Test #11:

score: 0
Accepted
time: 120ms
memory: 18172kb

input:

50000 100000
40274 28086 14965 28677
12650 33716 12581 11109
16786 16786 21018 13013
26254 33401 48068 4229
47462 47205 14138 14576
49896 7932 29165 19874
12844 12844 29165 22250
23336 9378 3163 32304
40270 40270 3086 37544
689 31331 23962 5864
46384 38103 25727 17144
20791 41430 18366 32920
30099 2...

output:

85021646

result:

ok 1 number(s): "85021646"

Test #12:

score: 0
Accepted
time: 133ms
memory: 17732kb

input:

100000 100000
98318 46270 83613 61442
13239 81162 13097 3987
49690 61623 8199 657
31695 7273 34758 5821
59631 59763 53880 97013
22513 71592 89368 75857
65153 21980 4655 76303
41236 71762 6354 84434
23078 3055 45039 48167
38669 82114 83368 81225
52310 59631 94239 12966
44459 21034 56788 31554
30106 1...

output:

14872932

result:

ok 1 number(s): "14872932"

Test #13:

score: 0
Accepted
time: 109ms
memory: 17036kb

input:

100000 100000
49975 62055 24472 5623
41135 99450 1214 46915
47352 2930 79978 86053
35151 83887 81834 86341
87286 9965 73060 26315
2683 29971 90491 3237
54313 92352 36055 16422
26426 40406 50340 68753
19314 87364 70073 43094
51641 69176 6109 96732
83001 39597 37990 38177
79440 39225 20962 29695
12476...

output:

3603950235

result:

ok 1 number(s): "3603950235"