QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#879445#9696. Analysisucup-team6072#TL 14ms9216kbPython31.0kb2025-02-02 02:35:322025-02-02 02:35:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 9ms
memory: 8832kb

input:

5 100 1000
1 2
2 3
3 4
4 5

output:

0

result:

ok 1 number(s): "0"

Test #2:

score: 0
Accepted
time: 13ms
memory: 8832kb

input:

5 100 200
1 2
1 3
2 4
2 5

output:

100

result:

ok 1 number(s): "100"

Test #3:

score: 0
Accepted
time: 11ms
memory: 8832kb

input:

10 133494816 109943166
10 8
5 3
1 2
8 9
8 5
2 4
8 7
8 6
10 1

output:

219886332

result:

ok 1 number(s): "219886332"

Test #4:

score: 0
Accepted
time: 8ms
memory: 8704kb

input:

10 165074331 854297934
6 2
2 7
9 8
2 9
9 10
6 3
6 4
5 6
6 1

output:

825371655

result:

ok 1 number(s): "825371655"

Test #5:

score: 0
Accepted
time: 11ms
memory: 8832kb

input:

9 719441223 227056392
4 6
9 2
5 3
1 4
6 8
1 9
1 7
3 1

output:

227056392

result:

ok 1 number(s): "227056392"

Test #6:

score: 0
Accepted
time: 10ms
memory: 8704kb

input:

10 216399993 137522662
9 6
1 2
2 9
4 1
10 3
7 5
5 4
3 7
2 8

output:

137522662

result:

ok 1 number(s): "137522662"

Test #7:

score: 0
Accepted
time: 10ms
memory: 8832kb

input:

10 796722415 144928611
9 10
6 4
2 7
5 1
3 2
6 5
3 9
1 8
6 3

output:

289857222

result:

ok 1 number(s): "289857222"

Test #8:

score: 0
Accepted
time: 10ms
memory: 8832kb

input:

9 377925753 230747764
1 3
8 5
5 1
6 8
7 2
7 4
6 7
7 9

output:

230747764

result:

ok 1 number(s): "230747764"

Test #9:

score: 0
Accepted
time: 11ms
memory: 9088kb

input:

1000 322954853 561443729
978 218
369 277
32 327
665 398
950 674
723 693
426 803
188 866
857 272
644 704
419 303
884 872
178 742
884 903
499 104
832 692
585 636
215 68
369 911
672 796
908 852
971 948
497 825
319 193
524 845
94 651
669 210
529 963
326 877
56 310
707 447
722 388
881 945
605 757
140 521...

output:

156210605808

result:

ok 1 number(s): "156210605808"

Test #10:

score: 0
Accepted
time: 12ms
memory: 9088kb

input:

1000 921029898 839745690
143 605
601 220
606 11
722 857
603 448
328 773
696 504
524 68
247 119
416 398
646 956
864 414
727 136
156 354
182 559
286 928
439 312
57 849
48 348
559 563
417 982
769 868
179 915
40 480
396 979
377 716
226 177
996 395
188 977
692 634
183 349
581 36
787 227
891 850
73 137
90...

output:

277955823390

result:

ok 1 number(s): "277955823390"

Test #11:

score: 0
Accepted
time: 12ms
memory: 9216kb

input:

970 865003183 730298972
199 701
485 267
822 192
167 635
636 848
438 566
924 5
11 222
576 420
509 432
428 630
251 832
860 510
306 299
147 817
190 764
126 413
693 156
546 72
672 868
929 312
513 260
920 803
112 947
302 316
875 615
566 587
321 369
889 645
819 692
255 735
450 523
824 397
509 300
167 353
...

output:

240998660760

result:

ok 1 number(s): "240998660760"

Test #12:

score: 0
Accepted
time: 14ms
memory: 9216kb

input:

1000 862859507 141216120
116 532
374 648
795 283
346 28
787 724
336 17
936 385
293 829
704 161
1 816
2 483
931 82
417 565
828 451
774 276
476 401
447 696
234 769
930 847
496 578
458 536
226 301
244 902
682 977
738 657
337 39
235 124
571 751
364 50
88 556
54 444
804 352
96 120
642 970
533 213
740 776...

output:

33609436560

result:

ok 1 number(s): "33609436560"

Test #13:

score: 0
Accepted
time: 13ms
memory: 9088kb

input:

1000 558366571 505493045
489 545
912 759
682 374
19 582
343 297
393 769
440 361
589 29
12 393
253 348
190 323
286 193
221 42
453 593
310 638
966 761
646 780
292 401
123 31
695 515
846 802
436 471
232 594
198 650
834 242
17 301
775 942
475 41
332 535
64 479
760 766
752 150
591 195
310 712
536 416
560...

output:

119801851665

result:

ok 1 number(s): "119801851665"

Test #14:

score: 0
Accepted
time: 14ms
memory: 9088kb

input:

970 935970558 426067204
636 310
658 635
469 629
615 193
346 166
256 932
847 1
301 697
106 259
645 352
240 79
102 908
873 617
625 354
887 209
876 525
354 543
843 369
348 90
264 892
232 31
752 934
88 730
670 957
722 575
606 650
410 468
720 603
785 351
109 528
467 58
239 504
107 806
402 533
961 660
315...

output:

100551860144

result:

ok 1 number(s): "100551860144"

Test #15:

score: -100
Time Limit Exceeded

input:

500000 854171423 776249842
139098 351774
367457 487287
175143 435875
131857 395707
160145 78070
430794 234221
196215 268128
238673 209485
102068 166268
13331 411244
123088 54536
113149 55054
463338 308892
144261 442906
194976 240811
392302 303426
56316 276955
223558 229936
354466 364582
175540 30642...

output:


result: