Codeforces Round #603 (Div. 2) E. Editor 线段树维护括号序列

NoSuchKey