cf/mirror

Maximize the Remaining String

CF
1506G2000· candidate master2.5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
codeforces
aezakmi
abacaba
convexhull
swflldjgpaxs
myneeocktxpqjpz
Output
odfrces
ezakmi
cba
convexhul
wfldjgpaxs
myneocktxqjpz
1506G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)