UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#119205#52. computercalabash_boy50198ms4420kbC++582b2020-09-18 23:36:002020-09-18 23:36:02

answer


Details

小提示:点击横条可展开更详细的信息

Test #1:

score: 0
Time Limit Exceeded

input:

5 5
1 3
2 3
1 1
1 5
3 3

output:


result:


Test #2:

score: 10
Accepted
time: 1ms
memory: 3256kb

input:

10 10
6 3
7 3
1 6
6 10
3 3
3 10
9 5
10 3
7 5
6 5

output:

0
1000000000
3
1000000000
9
3
3
1000000000
9
4

result:

ok 10 lines

Test #3:

score: 0
Time Limit Exceeded

input:

100 1000
81 86
36 40
93 90
39 45
20 23
74 76
7 14
10 9
8 15
61 51
13 19
70 71
53 50
98 99
29 32
50 4...

output:


result:


Test #4:

score: 0
Time Limit Exceeded

input:

500 5000
393 390
253 250
178 176
331 331
55 43
262 251
309 296
278 286
145 148
137 147
260 273
142 1...

output:


result:


Test #5:

score: 10
Accepted
time: 9ms
memory: 3336kb

input:

1000 10000
893 890
178 176
331 331
55 43
762 751
809 796
278 286
637 647
260 273
407 399
578 564
791...

output:

0
1657
1687
1760
2280
1687
701
1687
1687
1657
1687
1687
1687
1687
701
1687
1687
1687
1687
1687
1687
...

result:

ok 1000 lines

Test #6:

score: 10
Accepted
time: 27ms
memory: 3448kb

input:

5000 20000
2762 2751
2278 2286
1407 1399
187 197
2239 2226
121 135
2364 2374
2708 2719
1799 1792
580...

output:

0
6905
6905
6905
6905
6905
6905
6905
6905
6905
6905
8706
6905
6905
6905
6905
6905
6905
6905
6905
690...

result:

ok 5000 lines

Test #7:

score: 10
Accepted
time: 83ms
memory: 3720kb

input:

10000 50000
2762 2751
7364 7374
7708 7719
580 579
1368 1368
8711 8699
6763 6778
6912 6916
2986 2976
...

output:

0
15289
15289
15289
15289
15289
15289
15289
15289
15289
15289
16716
15289
15289
15289
15289
15289
15...

result:

ok 10000 lines

Test #8:

score: 10
Accepted
time: 78ms
memory: 4420kb

input:

50000 100000
2762 2751
17364 17374
27708 27719
40580 40579
18941 18943
28960 28965
8281 8275
38793 3...

output:

0
1000000000
73927
73927
73927
73927
73927
73927
73927
73927
73927
1000000000
73927
73927
1000000000...

result:

ok 50000 lines

Test #9:

score: 0
Time Limit Exceeded

input:

80000 200000
51368 51368
38711 38699
36912 36916
23475 23491
63899 63902
20565 20563
35460 35445
703...

output:


result:


Test #10:

score: 0
Time Limit Exceeded

input:

100000 300000
2762 2751
17364 17374
40580 40579
88793 88808
24330 24323
96286 96295
74497 74499
2744...

output:


result: