Rosetta Problems

Friends and Travel costs

https://atcoder.jp/contests/abc203/tasks/abc203_c