Rosetta Problems

Card Taking Game

https://atcoder.jp/contests/awc0161/tasks/awc0161_d