QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#506930#5075. Fenwick TreeZhangYiDeWA 13ms3784kbC++20717b2024-08-06 02:40:242024-08-06 02:40:25

详细

Test #1:

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

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: 13ms
memory: 3784kb

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
1
1
0
0
0
1
0
1
1
0
0
1
1
1
0
1
1
0
0
1
1
1
0
1
1
1
0
1
1
0
0
1
1
0
0
1
0
1
1
0
0
0
0
0
0
0
1
1
1
1
0
1
0
1
1
0
1
1
0
1
1
0
1
0
1
0
0
1
1
0
0
0
1
1
0
1
0
0
0
0
1
1
0
0
0
0
0
0
1
0
1
1
0
1
1
1
0
0
0
0
0
0
0
1
0
0
0
1
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
1
0
1
0
0
0
1
0
0
1
1
1
0
...

result:

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