QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#127795#6192. Interval ProblemchenchiTL 1ms3508kbC++232.8kb2023-07-20 05:45:202023-07-20 05:45:23

詳細信息

Test #1:

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

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
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: