Rosetta Problems

Card Grabbing

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