ICM Technex 2018 and Codeforces Round #463 (Div. 1 + Div. 2, combined) D - Tree (树上倍增)

NoSuchKey