cf/mirror

Sum over all Substrings (Hard Version)

CF
1930D22100· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
1
1
2
10
5
00000
20
11110110000000111111
Output
1
2
0
346
1930D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…