Rosetta Problems
← atcoder に戻る
Верный
https://atcoder.jp/contests/ijpc2015/tasks/ijpc2015_j