Codeforces Round #591 D. Sequence Sorting(逆向思维)

NoSuchKey