cf/mirror

Sum over all Substrings (Easy Version)

CF
1930D11800· expert2s256 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
1930D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)