Codeforces Round #852 (Div. 2) F. Rebrending(树状数组+动态开点线段树)

NoSuchKey