CodeForces - 1422F Boring Queries(线段树+主席树)

NoSuchKey