Educational Codeforces Round 40 G. Castle Defense (二分+滑动数组+greedy)

NoSuchKey