Codeforces Round #531 E. Monotonic Renumeration(思维题)

NoSuchKey