Rosetta Problems
← atcoder に戻る
One Third
https://atcoder.jp/contests/agc032/tasks/agc032_f