Rosetta Problems
← atcoder に戻る
Both Reversible
https://atcoder.jp/contests/arc171/tasks/arc171_f