线段树简单应用:https://codeforces.com/problemset/problem/1070/C

NoSuchKey