QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#43452#4245. Equal MEXZhangYiDeWA 51ms3716kbC++171.8kb2022-08-09 15:22:102022-08-09 15:22:13

詳細信息

Test #1:

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

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: 51ms
memory: 3716kb

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: 33ms
memory: 3652kb

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'