【CodeChef April Challenge 2014】Final Battle of Chef / 题解
题目描述 [https://www.codechef.com/APRIL14/problems/FBCHEF] Chef declared war on Byteland. Chefs best scientist Pramod has designed a new Fighter Plane which can fly with Speed of Light!! So none of the defence forces of Byteland can defeat or defend it. Byteland has a structure of a tree…