Maximize the Remaining String
1506G2000· candidate master2.5s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
6codeforcesaezakmiabacabaconvexhullswflldjgpaxsmyneeocktxpqjpz
Output
odfrcesezakmicbaconvexhulwfldjgpaxsmyneocktxqjpz
58%
1506G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)