Sum over all Substrings (Easy Version)
1930D11800· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
4112105000002011110110000000111111
Output
120346
58%
1930D1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)