Rosetta Problems

現代的な機械 (Modern Machine)

https://atcoder.jp/contests/joi2023ho/tasks/joi2023ho_e