Rosetta Problems

Card Game for Three (ABC Edit)

https://atcoder.jp/contests/abc045/tasks/abc045_b