QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#43448#4245. Equal MEXZhangYiDeWA 43ms3768kbC++171.6kb2022-08-09 15:17:462022-08-09 15:18:03

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 43ms
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: 40ms
memory: 3592kb

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
4
1
4
4
4
2
4
1
1
4
2
1
4
1
1
1
1
1
1
1
1
4
1
1
1
1
1
4
1
4
1
4
4
1
4
1
4
1
1
4
1
1
4
4
1
1
4
4
1
4
2
1
1
1
4
1
1
1
1
1
4
1
1
4
1
1
1
1
1
1
4
4
4
2
4
4
4
1
1
4
4
1
1
4
2
1
4
4
1
4
1
4
1
2
4
4
4
2
4
4
1
1
4
4
4
1
1
4
1
4
4
4
4
4
1
1
1
2
1
1
4
1
1
1
4
4
1
2
4
4
4
4
4
1
4
1
1
4
1
4
4
4
4
4
4
1
1
1
...

result:

wrong answer 8th numbers differ - expected: '3', found: '2'