Codeforces Round #381 (Div. 1) B. Alyona and a tree 二分 + 前缀和

NoSuchKey