Rosetta Problems

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

https://atcoder.jp/contests/joi2024yo2/tasks/joi2024_yo2_a