QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#795240#2200. Just Arrange the IconsInsomniaTTL 3ms3568kbC++205.9kb2024-11-30 18:54:242024-11-30 18:54:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 3568kb

input:

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

output:

3
3
4

result:

ok 3 number(s): "3 3 4"

Test #2:

score: -100
Time Limit Exceeded

input:

10000
4
4 1 2 2
3
1 3 3
1
1
6
4 1 4 5 3 4
5
1 4 1 2 3
1
1
8
2 5 1 3 2 1 4 4
8
6 3 5 6 4 2 3 5
5
5 1 5 1 3
4
2 2 2 1
8
1 2 2 1 3 1 1 2
6
1 1 1 1 2 2
4
3 2 3 2
3
2 2 2
6
1 1 1 1 1 1
4
1 2 3 3
2
2 2
6
1 3 2 2 1 4
3
2 1 3
6
1 1 1 1 1 1
7
1 2 1 3 1 2 3
5
1 1 1 1 1
5
2 2 1 3 1
5
2 3 4 1 3
3
1 1 1
6
3 3 1 ...

output:

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

result: