Rosetta Problems

箱と鍵 (Boxes and Keys)

https://atcoder.jp/contests/joi2022yo1a/tasks/joi2022_yo1a_d