Rosetta Problems

Product Matrix

https://atcoder.jp/contests/npcapc_2024/tasks/npcapc_2024_n