Educational Codeforces Round 112 E. Boring Segments(双指针+线段树)

NoSuchKey