cf/mirror

Binary Subsequence Value Sum

CF
2077C2300· international master3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
3 2
010
1
3
10 3
0101000110
3
5
10
24 1
011001100110000101111000
24
Output
1
5
512
768
1536
23068672
2077C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)