Eliminating Balls With Merging (Easy Version)
1998E12200· master4s512 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
35 51 2 3 2 17 74 5 1 2 1 4 511 111 2 3 1 1 9 3 2 4 1 3
Output
344
58%
1998E1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)