Rosetta Problems

最低通行费

https://www.acwing.com/problem/content/1020