Rosetta Problems
← atcoder に戻る
Treasure Hunting
https://atcoder.jp/contests/abc227/tasks/abc227_f