Functions On The Segments
837G2500· grandmaster5s1024 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
11 2 1 4 5 1011 1 2
Output
13
Sample 2of 2
Input
32 5 1 1 1 43 6 8 2 5 71 3 5 1 4 1031 3 32 3 21 2 5
Output
191711
58%
837G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)