cf/mirror

Lexicographically Maximum Subsequence

CF
196A1100· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
ababba
Output
bbba
Sample 2of 2
Input
abbcbccacbbcbaaba
Output
cccccbba
196A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)