Rosetta Problems

数学的な英雄王 3rd

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