Rosetta Problems

数学的な英雄王 2nd

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