Rosetta Problems

ケーキの取り出し(Cake Putting)

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