Card Game for Three

AtCoder - arc061_d