Codeforces 558E A Simple Task(计数排序+线段树优化)

NoSuchKey