摘要: 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) 编辑
摘要: Description今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%…” 确实如此,世界杯来了,球迷的节日也来了,估计很多ACMer也会抛开电脑,奔向电视了。 作为球迷,一定想看尽量多的完整的比赛,当... 阅读全文
posted @ 2017-07-19 00:22 mlzc 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Description作为杭电的老师,最盼望的日子就是每月的8号了,因为这一天是发工资的日子,养家糊口就靠它了,呵呵 但是对于学校财务处的工作人员来说,这一天则是很忙碌的一天,财务处的小胡老师最近就在考虑一个问题:如果每个老师的工资额都知道,最少需要准备多... 阅读全文
posted @ 2017-07-18 18:44 mlzc 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Description两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青... 阅读全文
posted @ 2017-07-18 03:05 mlzc 阅读(120) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John has built a new long barn, with N (2 #include #include #include#include using namespace std;const int N = ... 阅读全文
posted @ 2017-07-17 20:48 mlzc 阅读(90) 评论(0) 推荐(0) 编辑