cf/mirror

Large Array and Segments

CF
2086B1100· newbie2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
5 3 10
3 4 2 1 5
15 97623 1300111
105 95 108 111 118 101 95 118 97 108 111 114 97 110 116
1 100000 1234567891011
1
1 1 1
1
1 1 1
2
2 1 2
1 1
2 1 5
2 1
Output
12
1452188
0
1
1
1
0
2086B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)