Sums of Segments
2026D1900· candidate master4s512 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
41 2 5 10151 11 21 31 41 51 105 106 102 83 43 103 85 65 51 8
Output
14123032865654602682579261
58%
2026D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)