04 2014 档案
摘要:搬寝室 Time Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 23Accepted Submission(s) : 5Font: Times New Rom...
阅读全文
摘要:最少拦截系统 Time Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 35Accepted Submission(s) : 17Font: Times New...
阅读全文
摘要:Problem DescriptionNowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know...
阅读全文
摘要:Common Subsequence Time Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 32Accepted Submission(s) : 16Fon...
阅读全文
摘要:数塔 Time Limit : 1000/1000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 29Accepted Submission(s) : 25Font: Times New Rom...
阅读全文
摘要:Problem Description平面上有n条直线,且无三线共点,问这些直线能有多少种不同交点数。比如,如果n=2,则可能的交点数量为0(平行)或者1(不平行)。Input输入数据包含多个测试实例,每个测试实例占一行,每行包含一个正整数n(nusing namespace std;int mai...
阅读全文
摘要:Problem Description国庆期间,省城HZ刚刚举行了一场盛大的集体婚礼,为了使婚礼进行的丰富一些,司仪临时想出了有一个有意思的节目,叫做"考新郎",具体的操作是这样的:首先,给每位新娘打扮得几乎一模一样,并盖上大大的红盖头随机坐成一排;然后,让各位新郎寻找自己的新娘.每人只准找一个,并...
阅读全文
摘要:Problem DescriptionHDU 2006'10 ACM contest的颁奖晚会隆重开始了!为了活跃气氛,组织者举行了一个别开生面、奖品丰厚的抽奖活动,这个活动的具体要求是这样的:首先,所有参加晚会的人员都将一张写有自己名字的字条放入抽奖箱中;然后,待所有字条加入完毕,每人从箱中取一个...
阅读全文
摘要:Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N!InputOne N in one line, process to the end of file.OutputFor each N,...
阅读全文
摘要: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...
阅读全文
摘要:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1005&cid=22818Problem Description今年的ACM暑期集训队一共有18人,分为6支队伍。其中有一个叫做EOF的队伍,由04级的阿牛、XC以及05级的COY组成。在共...
阅读全文
摘要:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1004&cid=22818Problem Description挂盐水的时候,如果滴起来有规律,先是滴一滴,停一下;然后滴二滴,停一下;再滴三滴,停一下...,现在有一个问题:这瓶盐水一共有...
阅读全文
摘要:Problem Description网上流传一句话:"常在网上飘啊,哪能不挨刀啊~"。其实要想能安安心心地上网其实也不难,学点安全知识就可以。首先,我们就要设置一个安全的密码。那什么样的密码才叫安全的呢?一般来说一个比较安全的密码至少应该满足下面两个条件:(1).密码长度大于等于8,且不要超过16...
阅读全文
摘要: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...
阅读全文
摘要:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1006&cid=22706Problem Description人称“AC女之杀手”的超级偶像LELE最近忽然玩起了深沉,这可急坏了众多“Cole”(LELE的粉丝,即"可乐"),经过多方打...
阅读全文
摘要:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1005&cid=22706Problem Description大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了!做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难...
阅读全文
摘要:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1004&cid=22706Problem Description有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,共有多少种走法?Input输入数据首先包含一个整数...
阅读全文
摘要:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1003&cid=22706Problem Description有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母...
阅读全文
摘要:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1002&cid=22706Problem Description喜欢西游记的同学肯定都知道悟空偷吃蟠桃的故事,你们一定都觉得这猴子太闹腾了,其实你们是有所不知:悟空是在研究一个数学问题!什么...
阅读全文
摘要:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1001&cid=22706Problem DescriptionThere are many students in PHT School. One day, the headmaster ...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1005&cid=22619Problem Description给你两个集合,要求{A} + {B}.注:同一个集合中不会有两个相同的元素.Input每组输入数据分为三行,第一行有两个数字n...
阅读全文
摘要:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1003&cid=22619Problem Description非常抱歉,本来兴冲冲地搞一场练习赛,由于我准备不足,出现很多数据的错误,现在这里换一个简单的题目:前几天在网上查找ACM资料的...
阅读全文
摘要: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...
阅读全文
摘要:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1001&cid=22619Problem Description给你n个整数,请按从大到小的顺序输出其中前m大的数。Input每组测试数据有两行,第一行有两个数n,m(0#include ...
阅读全文
摘要:Problem DescriptionEddy's interest is very extensive, recently he is interested in prime number. Eddy discover the all number owned can be divided int...
阅读全文
摘要:Problem Description链接http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1002&cid=22518&problem=Problem%20%20B有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,...
阅读全文

浙公网安备 33010602011771号