Rosetta Problems

K Derangement

https://atcoder.jp/contests/arc144/tasks/arc144_c