[树状数组][权值线段树] Codeforces 1093E Intersection of Permutations

NoSuchKey