摘要:
描述 Given a n × n matrix A and a positive integer k, find the sum S = A + A2 + A3 + … + Ak. 题意 已知矩阵A,算A^1+A^2+....+A^k,元素对m取模 二分递归,如果k为偶数,,因为是等比矩阵,所以前一 阅读全文
摘要:
描述 In this problem, "lattice points" in the plane are points with integer coordinates. In order to contain his cows, Farmer John constructs a triangul 阅读全文