CodeForces - 363D --二分和贪心

NoSuchKey