CodeForces - 981G Magic multisets(线段树+set维护区间信息)

NoSuchKey