「Codeforces」C. Differential Sorting

NoSuchKey