摘要: Problem DescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are t... 阅读全文
posted @ 2014-04-06 15:49 冷夏的博客园 阅读(162) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1005&cid=22818Problem Description今年的ACM暑期集训队一共有18人,分为6支队伍。其中有一个叫做EOF的队伍,由04级的阿牛、XC以及05级的COY组成。在共... 阅读全文
posted @ 2014-04-06 15:42 冷夏的博客园 阅读(114) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1004&cid=22818Problem Description挂盐水的时候,如果滴起来有规律,先是滴一滴,停一下;然后滴二滴,停一下;再滴三滴,停一下...,现在有一个问题:这瓶盐水一共有... 阅读全文
posted @ 2014-04-06 15:41 冷夏的博客园 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Problem Description网上流传一句话:"常在网上飘啊,哪能不挨刀啊~"。其实要想能安安心心地上网其实也不难,学点安全知识就可以。首先,我们就要设置一个安全的密码。那什么样的密码才叫安全的呢?一般来说一个比较安全的密码至少应该满足下面两个条件:(1).密码长度大于等于8,且不要超过16... 阅读全文
posted @ 2014-04-06 15:39 冷夏的博客园 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionThe digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then... 阅读全文
posted @ 2014-04-06 15:38 冷夏的博客园 阅读(121) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1006&cid=22706Problem Description人称“AC女之杀手”的超级偶像LELE最近忽然玩起了深沉,这可急坏了众多“Cole”(LELE的粉丝,即"可乐"),经过多方打... 阅读全文
posted @ 2014-04-06 15:34 冷夏的博客园 阅读(149) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1005&cid=22706Problem Description大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了!做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难... 阅读全文
posted @ 2014-04-06 15:33 冷夏的博客园 阅读(118) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1004&cid=22706Problem Description有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,共有多少种走法?Input输入数据首先包含一个整数... 阅读全文
posted @ 2014-04-06 15:31 冷夏的博客园 阅读(146) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1003&cid=22706Problem Description有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母... 阅读全文
posted @ 2014-04-06 15:29 冷夏的博客园 阅读(111) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1002&cid=22706Problem Description喜欢西游记的同学肯定都知道悟空偷吃蟠桃的故事,你们一定都觉得这猴子太闹腾了,其实你们是有所不知:悟空是在研究一个数学问题!什么... 阅读全文
posted @ 2014-04-06 15:28 冷夏的博客园 阅读(183) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1001&cid=22706Problem DescriptionThere are many students in PHT School. One day, the headmaster ... 阅读全文
posted @ 2014-04-06 15:26 冷夏的博客园 阅读(345) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1008&cid=22619Problem DescriptionTomorrow is contest day, Are you all ready?We have been trainin... 阅读全文
posted @ 2014-04-06 15:24 冷夏的博客园 阅读(184) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1007&cid=22619Problem DescriptionFatMouse prepared M pounds of cat food, ready to trade with the... 阅读全文
posted @ 2014-04-06 15:22 冷夏的博客园 阅读(202) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1006&cid=22619Problem DescriptionFamous Harry Potter,who seemd to be a normal and poor boy,is ac... 阅读全文
posted @ 2014-04-06 15:20 冷夏的博客园 阅读(262) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1005&cid=22619Problem Description给你两个集合,要求{A} + {B}.注:同一个集合中不会有两个相同的元素.Input每组输入数据分为三行,第一行有两个数字n... 阅读全文
posted @ 2014-04-06 15:19 冷夏的博客园 阅读(179) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1003&cid=22619Problem Description非常抱歉,本来兴冲冲地搞一场练习赛,由于我准备不足,出现很多数据的错误,现在这里换一个简单的题目:前几天在网上查找ACM资料的... 阅读全文
posted @ 2014-04-06 15:16 冷夏的博客园 阅读(141) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1002&cid=22619Problem DescriptionIgnatius bought a land last week, but he didn't know the area o... 阅读全文
posted @ 2014-04-06 15:15 冷夏的博客园 阅读(263) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1001&cid=22619Problem Description给你n个整数,请按从大到小的顺序输出其中前m大的数。Input每组测试数据有两行,第一行有两个数n,m(0#include ... 阅读全文
posted @ 2014-04-06 15:13 冷夏的博客园 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionEddy's interest is very extensive, recently he is interested in prime number. Eddy discover the all number owned can be divided int... 阅读全文
posted @ 2014-04-06 15:08 冷夏的博客园 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Problem Description链接http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1002&cid=22518&problem=Problem%20%20B有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,... 阅读全文
posted @ 2014-04-06 15:06 冷夏的博客园 阅读(133) 评论(0) 推荐(0) 编辑