The Shortest Statement
1051F2400· grandmaster4s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
3 31 2 32 3 13 1 531 21 32 3
Output
341
Sample 2of 2
Input
8 131 2 42 3 63 4 14 5 125 6 36 7 87 8 71 4 11 8 32 6 92 7 14 6 36 8 281 51 72 32 83 73 46 87 8
Output
75677127
58%
1051F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…