QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#480634#6776. GardenMinaRagy06#15 1018ms17120kbC++201.4kb2024-07-16 17:01:112024-07-16 17:01:12

詳細信息

Subtask #1:

score: 15
Accepted

Test #1:

score: 15
Accepted
time: 176ms
memory: 16980kb

input:

499986 5 1979
299 1572
1897 274
119 291
206 1287
816 937
1922 1376
1676 57
1106 1706
1534 176
678 606
722 473
399 727
1682 1736
221 506
1413 1857
523 1730
1699 346
1056 1287
801 1017
314 1938
1872 189
1750 581
1846 1937
37 1840
1760 725
1465 1222
678 1203
1422 1930
1273 195
730 1930
232 1666
860 352...

output:

3900625

result:

ok single line: '3900625'

Test #2:

score: 0
Accepted
time: 172ms
memory: 16984kb

input:

499995 5 730
281 471
721 96
170 272
253 96
558 272
422 619
565 471
591 518
283 471
393 471
38 96
324 471
537 96
589 518
92 518
247 272
557 471
610 518
166 96
472 619
674 619
665 518
647 619
286 471
563 96
328 619
586 619
728 272
537 619
37 518
333 518
339 471
666 272
144 96
693 96
690 518
432 518
61...

output:

379900

result:

ok single line: '379900'

Test #3:

score: 0
Accepted
time: 855ms
memory: 17120kb

input:

499991 8 5000
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4082
4150 4...

output:

3527

result:

ok single line: '3527'

Test #4:

score: 0
Accepted
time: 924ms
memory: 17044kb

input:

499987 8 5000
1018 2994
1018 1427
1018 1427
3153 1767
3153 1767
628 2994
1018 2994
628 2994
3153 1767
1018 1427
628 1427
3153 1427
1018 1427
628 2994
3153 1427
3153 1427
628 1767
628 1427
3153 1427
628 1427
628 1767
3153 1427
3153 1427
1018 1767
628 1767
628 1427
628 1427
3153 1767
3153 1767
3153 14...

output:

5571104

result:

ok single line: '5571104'

Test #5:

score: 0
Accepted
time: 980ms
memory: 16956kb

input:

499989 8 5000
3239 2114
3239 2114
4705 2114
4705 3179
4705 2844
4316 2844
60 1374
4705 3179
587 4174
587 2844
60 3179
587 4174
60 3179
4316 2114
587 2844
4316 4174
3239 3179
587 2844
4316 1374
60 2844
587 3179
3239 2114
4705 2114
4705 3179
587 2114
4705 1374
4705 4174
60 1374
587 2114
587 3179
587 3...

output:

7058520

result:

ok single line: '7058520'

Test #6:

score: 0
Accepted
time: 1001ms
memory: 17048kb

input:

499989 8 5000
1418 3865
2676 113
2098 3865
277 2517
2674 1513
4473 3203
3375 3671
2355 4359
4473 2124
4020 3372
277 420
3373 2386
1665 3839
928 2557
783 2386
4962 3401
1965 3325
2278 2124
4820 2277
1665 227
341 4359
4131 4359
1362 4774
3387 94
2489 4313
2998 3447
4576 901
2676 1211
2674 3346
1665 21...

output:

21917250

result:

ok single line: '21917250'

Test #7:

score: 0
Accepted
time: 951ms
memory: 16968kb

input:

499988 8 5000
706 4465
3063 2986
569 343
569 3140
2101 1600
32 1544
2051 2518
3094 325
706 272
4372 4717
1333 1072
667 347
4372 3274
404 2518
2008 4825
4521 2667
3500 4920
3596 1398
3596 2962
404 59
3867 206
3867 2436
3581 2591
2241 1072
3005 4083
2692 1995
2301 3954
827 1570
3516 2337
3516 4083
123...

output:

21918420

result:

ok single line: '21918420'

Test #8:

score: 0
Accepted
time: 960ms
memory: 16984kb

input:

499988 8 5000
2062 4632
2414 4549
2813 1172
2465 3485
3056 1310
4361 2346
4376 3333
1218 4524
2698 2849
3717 2022
3699 1565
1215 3660
4926 4859
1680 3419
4587 1224
723 3352
2518 4253
1190 558
4765 649
561 1614
432 3787
3317 3046
1487 3220
3980 2703
2421 3714
2913 111
4874 4205
3219 4087
2398 3596
37...

output:

24990001

result:

ok single line: '24990001'

Test #9:

score: 0
Accepted
time: 1018ms
memory: 17044kb

input:

499987 8 5000
4709 2965
1888 4565
3998 344
2313 4909
2445 1979
3153 3191
3604 255
4958 1434
4016 1979
1648 2839
4697 4806
2477 2419
113 755
2123 2401
4045 465
3569 3449
2371 4028
4139 2516
4419 12
1662 1981
2387 3724
2184 4310
3735 1424
3221 3957
1085 193
2753 4339
2356 4988
3872 25
2641 179
822 462...

output:

25000000

result:

ok single line: '25000000'

Test #10:

score: 0
Accepted
time: 66ms
memory: 17048kb

input:

499988 3 1
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0 0
0...

output:

1

result:

ok single line: '1'

Subtask #2:

score: 0
Time Limit Exceeded

Test #11:

score: 6
Accepted
time: 1ms
memory: 3672kb

input:

4835 162 4
0 3
0 2
2 0
0 0
2 3
2 3
2 1
2 0
2 2
2 0
0 1
2 2
2 0
0 0
2 2
0 1
0 1
2 1
0 1
0 2
0 0
2 3
2 2
0 0
2 0
0 3
0 3
2 0
0 1
2 1
2 1
2 2
2 2
0 0
2 2
2 0
0 2
0 0
2 2
0 1
2 2
2 1
0 3
0 0
0 1
0 3
0 3
0 3
0 2
2 1
2 2
0 2
0 2
2 3
2 2
2 1
2 3
0 3
2 0
2 2
2 0
2 2
0 0
0 0
2 3
2 0
0 2
0 1
0 0
2 2
0 1
2 1
2...

output:

12

result:

ok single line: '12'

Test #12:

score: 0
Accepted
time: 9ms
memory: 3644kb

input:

1759 3239 7
5 5
2 5
3 5
3 5
2 5
1 5
3 5
4 5
5 5
1 5
3 5
5 5
2 5
5 5
5 5
2 5
4 5
1 5
1 5
4 5
2 5
3 5
1 5
4 5
5 5
1 5
2 5
1 5
1 5
3 5
4 5
2 5
1 5
2 5
5 5
2 5
2 5
4 5
3 5
2 5
4 5
5 5
5 5
2 5
3 5
4 5
1 5
2 5
4 5
3 5
3 5
3 5
4 5
5 5
3 5
3 5
1 5
5 5
1 5
3 5
1 5
5 5
4 5
3 5
5 5
3 5
4 5
2 5
5 5
2 5
2 5
2 5
...

output:

5

result:

ok single line: '5'

Test #13:

score: 0
Accepted
time: 1ms
memory: 3648kb

input:

8 4992 10
8 3
8 3
8 3
8 3
8 3
8 3
8 3
8 3
9 0
2 9
6 2
4 5
2 5
6 9
0 0
3 4
7 6
6 8
9 1
5 6
4 7
3 8
1 9
7 8
6 7
6 4
9 5
9 5
7 2
6 4
9 5
5 2
5 0
2 9
9 1
1 8
9 7
9 8
3 4
1 2
3 5
1 1
6 8
4 5
4 2
2 9
2 9
1 0
4 8
2 9
7 2
4 5
5 7
5 8
3 6
2 1
0 6
2 8
9 5
1 6
4 2
4 7
2 1
1 9
2 5
3 8
1 4
9 6
9 2
9 8
5 1
9 7
5 ...

output:

10

result:

ok single line: '10'

Test #14:

score: -6
Time Limit Exceeded

input:

9 4988 10
8 1
8 1
8 1
8 1
8 1
8 1
8 1
8 1
8 1
9 4
4 9
4 0
6 7
4 2
3 9
7 5
0 9
3 9
3 8
1 9
7 9
6 4
7 5
9 4
5 4
5 7
5 4
2 6
1 6
3 8
4 0
9 4
0 7
6 5
5 4
9 8
0 3
9 7
3 6
7 9
2 5
2 8
4 6
0 3
7 9
4 2
1 0
4 0
1 8
0 7
5 8
6 9
7 5
5 7
5 0
3 3
1 8
9 7
2 3
0 3
1 7
6 7
4 2
5 0
1 7
9 3
3 3
4 9
7 9
0 7
7 5
7 8
7 ...

output:


result:


Subtask #3:

score: 0
Skipped

Dependency #2:

0%

Subtask #4:

score: 0
Skipped

Dependency #3:

0%

Subtask #5:

score: 0
Skipped

Dependency #4:

0%

Subtask #6:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

0%