Rosetta Problems

Characteristic Polynomial

https://judge.yosupo.jp/problem/characteristic_polynomial