cf/mirror

Staircase

CF
1958D1600· expert2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
5
0 0 0 0 0
4
0 13 15 8
4
13 15 0 8
8
1 2 3 4 5 6 7 8
5
99999999 100000000 99999999 99999999 99999999
5
2 3 4 3 2
Output
0
59
64
72
899999993
24
1958D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)