Eliminating Balls With Merging (Hard Version)
1998E22500· grandmaster4s512 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
35 11 2 3 2 17 14 5 1 2 1 4 511 11 2 3 1 1 9 3 2 4 1 3
Output
1 1 2 2 31 1 1 1 1 3 41 1 2 2 2 1 1 1 3 3 4
58%
1998E2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)