Rosetta Problems

Nearest Card Game

https://atcoder.jp/contests/aising2019/tasks/aising2019_d