QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#261847#7755. Game on a Forestucup-team1521AC ✓27ms9324kbC++141.7kb2023-11-23 11:50:582023-11-23 11:50:59

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3436kb

input:

3 1
1 2

output:

2

result:

ok 1 number(s): "2"

Test #2:

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

input:

4 3
1 2
2 3
3 4

output:

3

result:

ok 1 number(s): "3"

Test #3:

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

input:

100000 1
4647 17816

output:

1

result:

ok 1 number(s): "1"

Test #4:

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

input:

100000 2
64075 72287
63658 66936

output:

0

result:

ok 1 number(s): "0"

Test #5:

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

input:

100000 3
59930 72281
31689 59132
20469 33165

output:

3

result:

ok 1 number(s): "3"

Test #6:

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

input:

100000 10
20391 78923
27822 80617
21749 25732
12929 79693
42889 52515
59064 99869
29031 41875
4463 17813
13407 42498
19120 20957

output:

0

result:

ok 1 number(s): "0"

Test #7:

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

input:

99999 101
34378 94161
67696 83255
24557 25591
11476 58475
5684 38157
33843 35321
9046 24028
14293 77681
587 42098
9402 27228
6999 13980
27118 84005
3622 8353
13545 51621
16998 63647
32912 53178
15206 15815
56517 86335
5563 93770
153 278
11242 41753
75098 76792
1695 22836
25936 33352
2765 6778
19597 ...

output:

200

result:

ok 1 number(s): "200"

Test #8:

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

input:

100000 1001
298 77037
4590 12413
23983 44856
15445 16769
81205 99801
62678 90775
7513 11129
27455 63264
39986 44211
61692 72309
60465 67632
66675 72861
4281 28582
26376 65551
9751 60666
4388 47945
1077 1132
53716 62874
39894 55139
28957 63412
41201 89573
6166 10477
2322 23039
24579 87570
16337 90895...

output:

1001

result:

ok 1 number(s): "1001"

Test #9:

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

input:

100000 2000
15502 16605
10164 34454
48764 97837
3462 26651
32457 52288
2871 13083
9012 55876
45290 81448
2879 15152
5347 6203
14519 50871
4513 19513
15241 25215
18759 76715
53123 97123
10178 25478
1955 4281
2346 30453
1770 53064
38900 57761
51275 65969
4801 21613
655 1131
15956 52140
39128 47232
416...

output:

0

result:

ok 1 number(s): "0"

Test #10:

score: 0
Accepted
time: 2ms
memory: 6476kb

input:

99999 3000
27340 79581
55921 68664
459 1145
55880 59400
25884 34981
27695 55440
15559 31392
16400 51581
7299 22688
24107 72852
16642 62108
5610 36856
19456 38723
50096 89933
44262 85879
25331 25638
38103 72312
58090 61238
10581 65561
4612 6491
11386 21234
29353 90524
8877 67738
48566 69766
26900 320...

output:

94369

result:

ok 1 number(s): "94369"

Test #11:

score: 0
Accepted
time: 2ms
memory: 6384kb

input:

99999 5001
19 10279
7996 89627
180 1602
29518 35569
60273 86569
11609 16548
32072 50554
59970 95300
27355 42751
29889 66830
14756 14827
27129 28784
16912 94660
54294 61296
34871 47816
8523 17150
46256 82814
32476 48290
13973 34558
168 283
6709 63673
49056 50996
10834 31268
42191 62180
18544 55231
70...

output:

9074

result:

ok 1 number(s): "9074"

Test #12:

score: 0
Accepted
time: 2ms
memory: 6744kb

input:

100000 8001
17822 40726
26704 40402
9081 28537
55432 87026
63399 93717
3008 87690
35260 42498
48489 55890
1319 29651
14742 62830
3516 9705
43876 99335
32815 95416
23699 29983
12777 17550
65800 81531
10975 26379
22336 47828
83199 93017
2301 12617
23714 31290
464 52740
41914 87882
425 596
3462 46453
3...

output:

8001

result:

ok 1 number(s): "8001"

Test #13:

score: 0
Accepted
time: 6ms
memory: 6744kb

input:

100000 10000
20782 32834
19586 31238
6607 79985
42398 46149
24450 30453
61109 77083
14698 51613
20581 82197
6609 10086
22048 45094
152 823
6270 78519
70842 94908
1570 5825
9535 11741
36211 76033
122 67314
38400 64728
24611 70038
1318 24474
2347 48140
31118 69905
66338 74670
83794 87509
3637 12875
12...

output:

0

result:

ok 1 number(s): "0"

Test #14:

score: 0
Accepted
time: 6ms
memory: 7192kb

input:

99999 20000
22303 91655
22365 47357
22975 61904
11680 78972
4349 80577
1394 89066
19182 98729
3981 13268
6569 11599
74485 76828
48558 85616
19911 88170
52100 73454
4189 21056
33609 38357
15464 21849
44769 70984
14228 15988
19465 48490
2831 50937
22875 68772
19378 87506
16229 85985
24001 38342
6106 1...

output:

71511

result:

ok 1 number(s): "71511"

Test #15:

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

input:

99999 30001
901 28923
7250 14561
64162 84128
11940 21102
10312 64146
33945 67595
9489 17950
16587 19380
5878 16182
80346 91950
50046 51101
3280 26897
4449 5979
5907 10460
75818 90919
12453 48403
30583 59630
42606 82477
43015 78510
5851 9116
8785 25617
25768 32819
28632 88784
27837 76383
21321 91202
...

output:

37292

result:

ok 1 number(s): "37292"

Test #16:

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

input:

100000 40001
57209 67452
8904 16948
1720 3862
9555 15946
8690 82046
21849 33034
914 5280
58672 73641
17964 18664
72856 80909
55458 71245
20241 43004
69436 71000
45291 65123
14060 36594
2632 16616
45278 60178
11385 21449
14344 49059
55446 87457
11023 13558
70054 80301
52360 95629
47474 56213
30461 64...

output:

40001

result:

ok 1 number(s): "40001"

Test #17:

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

input:

100000 50000
30110 34405
21685 51280
26992 83484
6784 54093
29116 49239
31065 52274
40918 58013
15593 26042
10377 19008
11076 12418
27110 85857
29281 58257
28539 53150
1525 23298
1285 84418
12547 15489
10709 71999
48333 89619
19594 75438
7363 17533
2192 9074
2865 4015
10069 13681
20138 31044
3494 15...

output:

0

result:

ok 1 number(s): "0"

Test #18:

score: 0
Accepted
time: 19ms
memory: 8572kb

input:

99999 60000
33943 35649
13198 71560
3962 13184
28821 57032
26614 41751
47519 61399
10572 20947
8559 38111
2400 3340
15613 17152
16 13348
5077 11228
8347 11687
4038 10621
1137 6898
6965 13381
16631 24801
8903 55125
42647 42702
81407 84146
17742 23421
37456 38954
51347 98746
1365 46751
25637 30029
28 ...

output:

45563

result:

ok 1 number(s): "45563"

Test #19:

score: 0
Accepted
time: 18ms
memory: 8812kb

input:

99999 70001
38765 56759
9856 40987
19562 48024
43286 80204
28500 30999
22889 34953
1336 4480
11545 28899
31946 82618
55548 60478
34496 98278
44983 71007
38011 97689
29743 56256
16744 71294
22130 50958
2861 12859
50352 63151
38400 49888
2851 9210
13943 26464
38744 43484
15045 83941
5826 74126
5067 91...

output:

58430

result:

ok 1 number(s): "58430"

Test #20:

score: 0
Accepted
time: 25ms
memory: 9028kb

input:

100000 80001
78115 91290
27972 60185
9065 41678
28602 36352
29418 51394
60851 69626
12871 39618
57094 96372
78672 86654
5386 15945
88372 99123
3704 5407
61431 73230
33205 63100
16436 16461
56657 77265
65183 95566
15200 85577
26525 35401
21841 66098
3655 3827
3480 5774
6787 52142
3728 97094
8048 6288...

output:

80001

result:

ok 1 number(s): "80001"

Test #21:

score: 0
Accepted
time: 27ms
memory: 9324kb

input:

100000 90000
54415 71458
5521 31157
19047 63576
32807 39990
31371 86708
10874 14868
18650 98691
1098 82232
68356 75084
6008 19341
29058 80127
3568 9405
14574 34241
10775 37788
27009 69062
6279 61877
16182 70970
38139 40644
38162 49195
6270 61613
20231 55965
23469 62301
26434 81826
31205 40947
4833 1...

output:

0

result:

ok 1 number(s): "0"

Test #22:

score: 0
Accepted
time: 26ms
memory: 9304kb

input:

99999 99998
8876 31844
87 158
2499 19222
22252 98277
31547 40231
14624 18882
24544 50391
31248 53721
61276 83825
20476 29117
11623 78358
25351 36212
11650 13639
4728 48317
32726 34471
62748 93590
84511 87893
8153 31219
24868 55298
6443 22257
1215 2055
1493 1974
11007 40975
83752 96471
3356 43921
123...

output:

33307

result:

ok 1 number(s): "33307"

Extra Test:

score: 0
Extra Test Passed