Diameter Cuts
1499F2400· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
4 31 21 31 4
Output
8
Sample 2of 4
Input
2 01 2
Output
1
Sample 3of 4
Input
6 21 62 42 63 65 6
Output
25
Sample 4of 4
Input
6 31 21 52 33 45 6
Output
29
58%
1499F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…