Rosetta Problems

Choosing Tourist Spots

https://atcoder.jp/contests/awc0091/tasks/awc0091_b