Rosetta Problems

Pow of Matrix

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