The Enchanted Forest
1687A1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
45 25 6 1 2 35 75 6 1 2 31 29999995 700001000000000 1000000000 1000000000 1000000000 1000000000
Output
123710000005000349985
58%
1687A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)