QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#168870#6192. Interval Problemucup-team1052TL 3ms11816kbC++172.2kb2023-09-09 00:53:482023-09-09 00:53:48

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 11816kb

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: -100
Time Limit Exceeded

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
20
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
11
5
9
1
17
14
25
7
1
2
40
20
18
19
13
4
26
2
28
0
0
39
19
0
37
4
13
18
19
23
14
2
4
0
42
10
0
1
6
52
7
1
18
3
6
1
40
7
24
18
13
31
43
4
11
23
20
1
0
4
4
0
1
9
3
1
17
37
14
43
5
17
32
60
0
0
0
28
0
18
16
7
...

result: