Rosetta Problems
← atcoder に戻る
唯一の組み合わせ
https://atcoder.jp/contests/utpc2014/tasks/utpc2014_g