Rosetta Problems

Stone game

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/1785