Rosetta Problems

Reversible Card Game

https://atcoder.jp/contests/arc164/tasks/arc164_c