QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#650766#7679. Master of Both IVucup-team5027#WA 19ms5968kbC++141.3kb2024-10-18 16:24:572024-10-18 16:24:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 5968kb

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: 19ms
memory: 5684kb

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:

12
527
24
11
13
9
39
9
9
19
39
13
9
8
19
17
14
11
13
27
13
13
27
43
11
9
13
15
13
25
15
13
19
8
8
13
13
8
13
31
14
15
55
27
8
8
9
19
13
13
39
11
9
17
9
14
11
13
11
8
10
39
13
13
17
15
21
9
11
8
12
10
27
8
11
17
13
8
24
10
8
87
9
8
17
15
9
8
39
8
11
13
8
31
13
10
27
27
31
9
9
13
17
19
17
27
47
17
19
...

result:

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