Rosetta Problems

入力フォーム

https://atcoder.jp/contests/njpc2017/tasks/njpc2017_a