cf/mirror

Fenwick Tree

CF
1967C2300· international master3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
2
8 1
1 2 1 4 1 2 1 8
6 2
1 4 3 17 5 16
Output
1 1 1 1 1 1 1 1
1 2 3 4 5 6
1967C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…