F. Dominant Indices Educational Codeforces Round 47 (Rated for Div. 2)(树上启发式合并)

NoSuchKey