#P10502. Matrix Power Series
Matrix Power Series
题目描述
Givena matrix and apositive integer ,find the sum .
输入格式
The input contains exactly one test case. The first line of input contains three positive integers (), () and (). Then follow n lines each containing non negative integers below 32,768, giving ’s elements in row-major order.
输出格式
Output the elements of modulo in the same way as is given.
2 2 4
0 1
1 1
1 2
2 3