Remove at the lowest cost
2176E2400· grandmaster3s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
2105 5 8 10 4 3 4 10 5 510 3 9 6 9 8 7 8 10 31 10 2 9 5 6 7 4 3 841000000000 1000000000 1000000000 10000000001000000000 1000000000 1000000000 10000000001 2 4 3
Output
42 36 30 30 30 12 12 12 0 0 03000000000 0 0 0 0
58%
2176E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…