QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#796357#5075. Fenwick Treeucup-team4645#WA 35ms9844kbC++23919b2024-12-01 17:33:112024-12-01 17:33:12

详细

Test #1:

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

input:

3
5
10110
5
00000
5
11111

output:

3
0
3

result:

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

Test #2:

score: -100
Wrong Answer
time: 35ms
memory: 9796kb

input:

100000
10
0000000000
10
0000000100
10
0000000000
10
1000000000
10
0000010000
10
0000000000
10
0000000000
10
0000000000
10
0100000000
10
0000000000
10
0000000001
10
0000001000
10
0000000000
10
0000000000
10
0000000001
10
0000100000
10
0010000000
10
0000000000
10
0010000000
10
0000000001
10
0000000000...

output:

0
1
0
2
1
0
0
0
1
0
1
1
0
0
1
2
1
0
1
1
0
0
2
2
1
0
1
2
1
0
2
1
0
0
2
2
0
0
1
0
1
1
0
0
0
0
0
0
0
1
2
1
1
0
1
0
2
1
0
1
1
0
2
2
0
1
0
1
0
0
1
1
0
0
0
1
1
0
1
0
0
0
0
1
2
0
0
0
0
0
0
1
0
1
1
0
2
2
2
0
0
0
0
0
0
0
1
0
0
0
2
0
1
0
0
0
1
0
1
0
0
1
0
0
0
1
0
0
1
1
0
0
1
0
1
0
0
2
0
2
0
0
0
1
0
0
1
1
1
0
...

result:

wrong answer 5th numbers differ - expected: '2', found: '1'