Rosetta Problems

Prefix-free Game

https://atcoder.jp/contests/arc087/tasks/arc087_c