Codeforces Round #603 (Div. 2) E. Editor(线段树+思维)

NoSuchKey