Codeforces414D. Mashmokh and Water Tanks

http://codeforces.com/problemset/problem/414/D Mashmokh is playing a new game. In the beginning he has k liters of water and p coins. Additionally he has a rooted tree (an undirected connected acyclic
相關文章
相關標籤/搜索