题意 :给出n k m 和一个n*n的矩阵A 求A + A2 +A3 + … + Ak 参考http://blog.csdn.net/wangjian8006/article/details/7868864 构造矩阵很重要啊!!! 弱菜不会啊 #include <cstdio>#include <cstring>const int mod = 10000;const int maxn
Description Given a n × n matrix A and a positive integer k, find the sum S = A + A2 + A3 + … + Ak. Input The input contains exactly one test case. The first line of input contains three
Matrix Power Series http://poj.org/problem?id=3233 Time Limit: 3000MS Memory Limit: 131072K Description Given a n × n matrix A and a positive integer k, find the