Rosetta Problems

矩阵幂求和

https://www.acwing.com/problem/content/227