QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#364139#5075. Fenwick TreeMaMengQiWA 49ms1620kbC++17680b2024-03-24 12:21:202024-03-24 12:21:20

詳細信息

Test #1:

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

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: 49ms
memory: 1552kb

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'