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
相关文章
相关标签/搜索