QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#261414#7679. Master of Both IVucup-team1057WA 30ms3380kbC++202.3kb2023-11-22 21:02:432023-11-22 21:02:43

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
3
1 2 3
5
3 3 5 1 1

output:

4
11

result:

ok 2 number(s): "4 11"

Test #2:

score: -100
Wrong Answer
time: 30ms
memory: 3380kb

input:

40000
5
4 2 5 5 5
5
5 5 5 5 4
5
1 4 4 4 2
5
2 5 2 4 1
5
3 2 4 5 3
5
1 5 5 3 4
5
5 5 5 4 3
5
4 3 3 5 1
5
4 5 5 2 1
5
2 5 4 2 5
5
3 4 3 4 3
5
5 3 5 1 3
5
5 1 2 4 4
5
4 2 5 1 5
5
5 4 2 5 4
5
5 2 5 2 4
5
1 4 5 4 5
5
4 2 3 2 3
5
1 4 1 3 5
5
1 1 2 1 5
5
5 2 5 1 3
5
3 1 2 5 3
5
5 5 1 1 5
5
2 2 2 1 3
5
3 1 ...

output:

3
7
9
9
3
8
3
8
8
3
7
8
8
8
3
3
12
3
11
15
8
8
17
13
8
11
8
3
3
13
15
9
3
8
8
3
11
9
11
13
15
3
7
3
8
8
8
7
11
8
3
11
8
3
11
15
9
8
3
8
8
15
11
8
17
3
15
8
8
8
12
9
3
11
8
13
9
8
15
3
8
3
3
8
3
15
8
11
7
8
9
11
8
19
11
13
19
17
7
15
3
8
3
3
3
3
7
15
17
3
3
17
9
11
9
3
11
9
3
11
8
9
9
13
15
11
8
11
9...

result:

wrong answer 1st numbers differ - expected: '9', found: '3'