codeforces+D. Mike and distribution+二维贪心

NoSuchKey