摘要: Given a n × n matrix A and a positive integer k, find the sum S = A + A2 + A3 + … + Ak. Given a n × n matrix A and a positive integer k, find the sum  阅读全文
posted @ 2017-03-18 21:27 阿波罗2003 阅读(355) 评论(0) 推荐(0) 编辑
摘要: Input The first line of input gives the number of cases, T. T test cases follow, each on a separate line. Each test case contains one positive integer 阅读全文
posted @ 2017-03-18 20:11 阿波罗2003 阅读(145) 评论(0) 推荐(0) 编辑