QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#134353#6540. Beautiful Sequencechen_zhe_WA 1ms7276kbC++141.2kb2023-08-03 17:49:502023-08-03 17:49:52

詳細信息

Test #1:

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

input:

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

output:

4
4

result:

ok 2 number(s): "4 4"

Test #2:

score: 0
Accepted
time: 1ms
memory: 5096kb

input:

2
5
1 2 2 3 3
20
1 1 1 1 1 1 4 5 8 8 8 8 9 9 9 9 10 10 10 10

output:

4
17

result:

ok 2 number(s): "4 17"

Test #3:

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

input:

300
14
1 1 1 2 2 2 3 3 3 4 5 5 6 6
14
1 1 1 2 2 3 3 4 4 5 5 6 7 7
14
1 1 2 2 3 4 4 4 5 5 5 6 6 6
14
1 1 2 2 3 3 3 4 5 5 5 6 6 6
14
1 1 1 1 1 1 2 2 2 2 2 3 3 3
14
1 1 1 1 1 1 1 1 1 1 1 1 1 1
14
1 2 2 3 4 5 5 6 6 6 7 8 8 8
14
1 2 2 2 2 2 3 4 5 6 7 8 9 10
14
1 2 2 3 4 4 4 5 6 6 6 6 6 7
14
1 1 2 2 2 3 3...

output:

10
8
11
11
12
14
10
9
10
11
9
9
10
9
11
11
10
9
9
12
10
9
9
9
10
10
10
10
11
11
9
8
10
10
9
10
10
13
10
12
11
10
9
10
9
10
11
10
10
8
11
10
10
9
10
8
10
10
11
11
11
9
10
10
9
9
9
10
11
10
10
10
9
9
10
9
10
9
10
9
9
10
8
10
8
11
9
11
11
12
8
9
10
8
12
11
10
11
9
10
11
9
10
8
10
9
10
10
9
10
9
9
10
11...

result:

wrong answer 2nd numbers differ - expected: '9', found: '8'