Rosetta Problems

Fast as Fast as Ryser

https://atcoder.jp/contests/xmascon22/tasks/xmascon22_f