Nearest Beautiful Number (hard version)
1560F22100· master1s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
62021 3177890 234512 3724533 4998244353 112345678 10
Output
20211811113453372454299999999912345678
58%
1560F2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…