QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#244690#6192. Interval Problemucup-team856WA 82ms29480kbC++234.0kb2023-11-09 14:30:002023-11-09 14:30:00

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 17932kb

input:

5
2 3
6 7
1 9
5 10
4 8

output:

7
5
4
5
5

result:

ok 5 number(s): "7 5 4 5 5"

Test #2:

score: 0
Accepted
time: 82ms
memory: 29480kb

input:

200000
342504 342505
248314 248317
259328 259334
234817 234821
225726 225732
371424 371425
260562 260565
34752 34753
132098 132100
262130 262134
7254 7255
228491 228492
43488 43492
188408 188410
11691 11692
350334 350335
327350 327352
360684 360685
182051 182052
72131 72135
194666 194668
61303 61313...

output:

12
21
17
6
16
33
2
1
1
19
6
0
25
19
7
11
2
20
14
8
2
11
0
1
0
2
38
35
28
6
4
0
23
22
17
10
26
10
5
9
1
16
14
24
7
1
2
40
18
18
19
13
4
26
2
28
0
0
39
19
0
37
4
13
18
19
23
14
2
4
0
40
10
0
1
6
52
7
1
18
3
6
1
40
7
24
16
13
31
43
4
10
23
20
1
0
4
4
0
1
8
3
1
17
37
14
43
5
17
32
60
0
0
0
28
0
18
16
7
...

result:

ok 200000 numbers

Test #3:

score: -100
Wrong Answer
time: 82ms
memory: 29004kb

input:

200000
26851 26856
258158 258160
332869 332878
28073 28074
65883 65898
181844 181847
162628 162633
293275 293276
107389 107398
302056 302072
95036 95038
311987 311988
279551 279552
86 87
161331 161332
3744 3747
231020 231024
42346 42352
37146 37153
294389 294406
265867 265873
246877 246881
197614 19...

output:

64
88
81
99
668
386
308
28
42
250
22
139
3979
388
623
312
1530
770
469
206
284
259
767
1503
221
130
686
331
98
232
865
162
1649
43
130
1144
94
413
889
1861
211
762
28
836
116
162
548
225
86
1561
319
617
4127
474
96
50
1580
1558
1435
86
465
1700
15
2
99
103
136
723
1510
12
1400
223
1271
37
61
597
27
...

result:

wrong answer 14th numbers differ - expected: '331', found: '388'