摘要: DescriptionPetya loves computer games. Finally a game that he’s been waiting for so long came out!The main character of this game... 阅读全文
posted @ 2017-07-21 14:20 mlzc 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 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 ... 阅读全文
posted @ 2017-07-21 03:08 mlzc 阅读(101) 评论(0) 推荐(0) 编辑
摘要: DescriptionIn the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn − 1 + Fn − 2 for n ≥ 2. For example, the first ten term... 阅读全文
posted @ 2017-07-21 02:35 mlzc 阅读(176) 评论(0) 推荐(0) 编辑
摘要: DescriptionAn important topic nowadays in computer science is cryptography. Some people even think that cryptography is the only ... 阅读全文
posted @ 2017-07-21 02:23 mlzc 阅读(224) 评论(0) 推荐(0) 编辑
摘要: DescriptionWhen a thin rod of length L is heated n degrees, it expands to a new length L’=(1+n*C)*L, where C is the coefficient o... 阅读全文
posted @ 2017-07-21 01:57 mlzc 阅读(115) 评论(0) 推荐(0) 编辑
摘要: DescriptionJosephina is a clever girl and addicted to Machine Learning recently. She pays much attention to a method called Line... 阅读全文
posted @ 2017-07-21 01:21 mlzc 阅读(89) 评论(0) 推荐(0) 编辑