codeforces #629 F - Make k Equal

NoSuchKey