Rosetta Problems

数学的な英雄王

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