Rosetta Problems

インターカステラー (Intercastellar)

https://atcoder.jp/contests/joi2022ho/tasks/joi2022ho_a