Rosetta Problems

旅人計画問題3

https://atcoder.jp/contests/pakencamp-2021-day3/tasks/pakencamp_2021_day3_g