2016年3月4日

摘要: 题目描述DescriptionGiven a n×n matrix A and a positive integer k, find the sum S=A+A2+A3+…+Ak.InputThe input contains exactly one test case. The ... 阅读全文
posted @ 2016-03-04 13:32 JeremyGuo 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 题目描述Sequence (ai) of natural numbers is defined as follows:ai=bi(i≤k) ai=c1ai−1+c2ai−2+...+ckai−k(i>k)where bj and cj are given natural nu... 阅读全文
posted @ 2016-03-04 12:53 JeremyGuo 阅读(196) 评论(0) 推荐(0) 编辑

导航