QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#43450#4245. Equal MEXGuanYunchangWA 63ms3804kbC++171.5kb2022-08-09 15:18:592022-08-09 15:19:01

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
6
0 0 0 1 1 1
5
0 1 0 1 0
4
0 0 0 0
3
3 3 3

output:

1
3
8
4

result:

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

Test #2:

score: 0
Accepted
time: 63ms
memory: 3768kb

input:

300000
1
1
1
1
1
1
1
1
1
1
1
0
1
0
1
0
1
0
1
0
1
1
1
0
1
1
1
1
1
0
1
1
1
0
1
1
1
0
1
0
1
1
1
1
1
1
1
1
1
0
1
0
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0
1
1
1
1
1
1
1
0
1
1
1
1
1
1
1
1
1
1
1
1
1
0
1
0
1
1
1
1
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1
0
1
1
1
1
1
1
1
0
1
0
1
1
1
1
1
0
1
1
1
0
1
0
1
1
1
1
1
1
1
0
1...

output:

1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
...

result:

ok 300000 numbers

Test #3:

score: -100
Wrong Answer
time: 54ms
memory: 3788kb

input:

100000
3
2 2 0
3
0 1 3
3
1 1 3
3
0 1 0
3
3 2 2
3
2 2 1
3
1 3 1
3
0 2 0
3
3 2 2
3
2 0 3
3
3 2 0
3
3 2 1
3
0 3 0
3
2 0 1
3
3 3 3
3
2 3 0
3
0 2 2
3
0 1 1
3
0 1 1
3
0 3 2
3
2 1 0
3
3 2 0
3
0 1 2
3
3 3 1
3
0 3 1
3
0 3 2
3
0 3 1
3
2 3 0
3
0 2 3
3
2 1 2
3
0 3 2
3
3 2 3
3
3 2 0
3
1 3 1
3
3 2 2
3
0 2 2
3
3 2...

output:

1
1
2
1
1
2
2
2
1
1
1
1
2
1
4
1
1
1
1
1
1
1
1
2
1
1
1
1
1
2
1
2
1
2
1
1
2
1
1
1
1
1
1
1
1
1
1
1
4
1
1
2
2
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
4
2
2
4
1
2
1
1
4
1
1
1
4
2
1
1
2
1
1
1
2
1
2
2
2
1
2
2
2
1
1
1
1
4
1
1
1
1
2
4
2
1
2
1
1
1
2
1
1
2
1
1
1
2
2
1
2
2
1
2
1
2
1
1
1
1
2
1
2
1
1
1
1
1
1
1
1
...

result:

wrong answer 3rd numbers differ - expected: '4', found: '2'