Codeforces Round #279 (Div. 2) F. Treeland Tour (暴力枚举树链+LIS)

NoSuchKey