摘要:
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 阅读全文
摘要:
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 阅读全文