Rosetta Problems

N-choice question

https://atcoder.jp/contests/abc300/tasks/abc300_a