Codeforces Round #410 (Div. 2) D. Mike and distribution【玄学随机 or 贪心】

NoSuchKey