QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#203063#4002. Easy FixMaMengQiWA 1ms4000kbC++142.4kb2023-10-06 15:09:172023-10-06 15:09:19

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

7
1 6 2 7 5 4 3
7
1 7
2 6
3 5
4 4
1 1
2 1
3 7

output:

7
6
6
7
7
6
8

result:

ok 7 lines

Test #2:

score: 0
Accepted
time: 0ms
memory: 3976kb

input:

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

output:

3
0
0

result:

ok 3 lines

Test #3:

score: -100
Wrong Answer
time: 1ms
memory: 3916kb

input:

10
10 1 6 7 9 8 4 3 5 2
10
6 7
5 2
4 1
10 4
6 2
1 9
2 9
4 5
6 8
9 7

output:

12
9
13
9
9
15
10
11
11
12

result:

wrong answer 2nd lines differ - expected: '7', found: '9'