Codeforces Round #686 (Div. 3) F. Array Partition 二分 + 线段树

NoSuchKey