Rosetta Problems

王の財宝(ゲート・オブ・バビロン)

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