Rosetta Problems

カードゲーム 3 (Card Game 3)

https://atcoder.jp/contests/joigsp2024/tasks/joigsp2024_e