Rosetta Problems

平方ゲー

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