UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#96112#52. computerqingyu100123ms13224kbC++111.2kb2020-02-19 20:12:542020-02-19 20:12:54

answer


详细

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

Test #1:

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

input:

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

output:

0
2
1
1000000000
4

result:

ok 5 lines

Test #2:

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

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: 10
Accepted
time: 0ms
memory: 5328kb

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:

0
79
162
79
79
84
79
96
79
79
66
162
79
79
96
79
184
87
79
79
174
79
79
141
79
79
133
79
106
79
214
...

result:

ok 100 lines

Test #4:

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

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:

0
242
874
874
874
874
874
874
874
874
874
874
874
874
874
874
874
874
874
874
874
874
874
874
874
87...

result:

ok 500 lines

Test #5:

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

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: 1ms
memory: 5880kb

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: 10ms
memory: 6632kb

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: 2ms
memory: 7876kb

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: 10
Accepted
time: 44ms
memory: 10548kb

input:

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

output:

0
168196
168196
168196
168196
168196
168196
168196
168196
168196
168196
168196
168196
168196
168196
...

result:

ok 80000 lines

Test #10:

score: 10
Accepted
time: 64ms
memory: 13224kb

input:

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

output:

0
1000000000
104695
1000000000
1000000000
104695
104695
104695
104695
121373
104695
1000000000
10000...

result:

ok 100000 lines