Codeforces Round #466 (Div. 2) F. Machine Learning(带修改莫队)

NoSuchKey