QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#417530#6703. Tokens on the SegmentsMaMengQiWA 43ms4328kbC++17673b2024-05-22 19:34:182024-05-22 19:34:19

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
3
1 2
1 1
2 3
3
1 2
1 1
2 2

output:

3
2

result:

ok 2 number(s): "3 2"

Test #2:

score: -100
Wrong Answer
time: 43ms
memory: 4328kb

input:

10000
6
5 19
7 12
10 10
4 14
1 12
5 11
7
3 5
1 10
12 15
2 13
8 11
5 20
11 14
18
6 17
6 9
6 20
2 7
1 11
16 19
2 5
1 14
5 8
14 19
4 7
11 19
11 13
2 9
3 12
12 13
19 19
13 16
11
11 13
1 2
14 17
15 16
12 17
15 17
6 7
8 11
12 19
3 8
10 19
18
6 9
16 18
13 15
14 15
9 13
2 8
12 18
8 16
16 18
3 18
1 12
4 13
1...

output:

19
20
20
19
20
18
18
18
19
9
20
12
20
18
20
20
20
19
20
19
20
19
20
20
20
17
7
18
20
9
19
18
20
13
20
20
19
20
17
20
15
17
20
20
19
20
17
20
20
20
19
19
20
12
20
19
19
11
20
19
20
19
16
19
20
20
20
20
14
17
7
14
20
19
9
18
20
20
20
17
19
17
20
20
18
18
20
18
18
18
20
18
20
20
20
20
19
19
15
20
20
20...

result:

wrong answer 1st numbers differ - expected: '6', found: '19'