#P10502. Matrix Power Series
Matrix Power Series
Description
Givena matrix and apositive integer ,find the sum .
Input Format
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 Format
Output the elements of modulo in the same way as is given.
2 2 4
0 1
1 1
1 2
2 3
京公网安备 11011102002149号