Lexicographically Small Enough
1616E2200· master1s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
41aa3rllrrr3caaaca5ababaaabba
Output
-1022
58%
1616E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
41aa3rllrrr3caaaca5ababaaabba
-1022