Codeforces 1305 F. Kuroni and the Punishment(随机算法)

NoSuchKey