CodeForces - 1295E Permutation Separation(线段树+二维偏序,好题)

NoSuchKey