POJ 3233 Matrix Power Series(矩阵快速幂)
DescriptionGiven a n × n matrix A and a positive integer k, find the sum S=A+A2+A3+…+Ak.S = A + A^2 + A^3 + … + A^k.InputThe input contains exactly one test case. The first line of input contains three
原创
2016-08-18 11:05:45 ·
452 阅读 ·
0 评论