Rosetta Problems

Minimum-Cost Arborescence

https://onlinejudge.u-aizu.ac.jp/problems/GRL_2_B