Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3525 Accepted Submission(s): 1212 Problem Descri
转载 2018-01-07 10:37:00
65阅读
2评论
Problem Description Lindsay is a shopaholic. Whenever there is a discount of the kind where you can buy three items and only pay for two, she goes completely mad and feels a need to buy all items in t
原创 2022-05-14 12:49:32
64阅读
HDU TodayTime Limit: 15000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 17749Accepted Submission(s): 4197Problem...
转载 2015-05-29 19:54:00
110阅读
2评论
hdu1030一道有规律的数学题, 仔细分析就可以得出结果,嘿嘿。。 作者:贾钰(Jeick Jia)   CS@SCU 时间:2011-4-25 Problem Description A triangle field is numbered with successive integers in the way shown on the picture below
原创 2011-04-25 21:21:25
1302阅读
Problem Description Are you excited when you see the title “AC” ? If the answer is YES , AC it ; You must learn these two combination formulas in the school . If you have forgotten it , see the pictu
原创 2022-05-14 12:52:55
51阅读
Saving HDUTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6453Accepted Submission(s): 2973Problem ...
转载 2015-06-02 13:47:00
88阅读
2评论
Problem Description Are you excited when you see the title “AC” ? If the answer is YES , AC it ; You must learn these two combination formulas in the
转载 2017-07-26 20:33:00
40阅读
2评论
Problem Description 转眼又到了一年的年末,Lele又一次迎来了期末考试。虽然说每年都要考试,不过今年的这场考试对Lele来说却意义重大。因为经济原因,如果今年没有排在班级前几名,而拿不到奖学金的话,家里便无力再供他继续读书。而且家里帮他都想好出路了——回家种田!!虽说Lele心里有一百个不愿意,不过父母的话不能不听。忐忑不安地考完试,Lele拿到了全班的成绩单,这张成绩单是按学
原创 2022-05-14 12:42:45
16阅读
Problem Description We once did a lot of recursional problem . I think some of them is easy for you and some if hard for you. Now there is a very easy problem . I think you can AC it. We can defin
原创 2022-05-14 12:47:49
52阅读
Problem Description 为了能过个好年,xhd开始复习了,于是每天晚上背着书往教室跑。xhd复习有个习惯,在复习完一门课后,他总是挑一门更简单的课进行复习,而他复习这门课的效率为两门课的难度差的平方,而复习第一门课的效率为100和这门课的难度差的平方。xhd这学期选了n门课,但是一晚上他最多只能复习m门课,请问他一晚上复习的最高效率值是多少?Input 输入数据的第一行是一个数据
原创 2022-05-14 12:50:03
50阅读
Problem Description When shopping on Long Street, Michael usually parks his car at some random location, and then walks to the stores he needs. Can you help Michael choose a place to park which minim
原创 2022-05-14 12:53:20
240阅读
Problem Description 完数的定义:如果一个大于1的正整数的所有因子之和等于它的本身,则称这个数是完数,比如6,28都是完数:6=1+2+3;28=1+2+4+7+14。本题的任务是判断两个正整数之间完数的个数。Input 输入数据包含多行,第一行是一个正整数n,表示测试实例的个数,然后就是n个测试实例,每个实例占一行,由两个正整数num1和num2组成,(1import jav
原创 2022-05-14 12:53:58
76阅读
题目
原创 2022-08-23 08:16:57
36阅读
Problem Description 美国大选是按各州的投票结果来确定最终的结果的,如果得到超过一半的州的支持就可以当选,而每个州的投票结果又是由该州选民投票产生的,如果某个州超过一半的选民支持希拉里,则她将赢得该州的支持。现在给出每个州的选民人数,请问希拉里至少需要赢得多少选民的支持才能当选? Input 多组输入数据 每组数据的第一行包括一个整数N(1<=N<=101),表示美国的州数
原创 2022-05-14 12:38:48
31阅读
Problem Description 统计一个给定字符串中指定的字符出现的次数Input 测试输入包含若干测试用例,每个测试用例包含2行,第1行为一个长度不超过5的字符串,第2行为一个长度不超过80的字符串。注意这里的字符串包含空格,即空格也可能是要求被统计的字符之一。当读到’#’时输入结束,相应的结果不要输出。Output 对每个测试用例,统计第1行中字符串的每个字符在第2行字符串中出现的
原创 2022-05-14 12:50:30
45阅读
Problem Description As you know, Gardon trid hard for his love-letter, and now he’s spending too much time on choosing flowers for Angel. When Gardon entered the flower shop, he was frightened and da
原创 2022-05-14 12:53:25
70阅读
题目链接:Shape of HDU /* 1.向量的叉积的模表示这两个向量围成的平行四边形的面积。
原创 2023-02-20 11:02:28
40阅读
Problem Description After the 32nd ACM/ICPC regional contest, Wiskey is beginning to prepare for CET-6. He has an English words table and read it every morning. One day, Wiskey’s chum wants to play a
原创 2022-05-14 12:41:44
28阅读
Problem Description After little Jim learned Fibonacci Number in the class , he was very interest in it. Now he is thinking about a new thing – Fibonacci String .He defines : str[n] = str[n-1] + str[
原创 2022-05-14 12:49:39
26阅读
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1171此题让我们求出最好的分配方式使得两边的差最小。此题有两种做法,第一种是用母函数,第二种是用01背包。1.母函数:进行母函数的算法后,我们从中间开始找,第一个找到的不为0的便就是我们要找的。2.背包:背包的处理就只需要找到我们V/2的容积下最大获得的价值即可。#inclu
原创 2022-08-30 10:55:53
60阅读
  • 1
  • 2
  • 3
  • 4
  • 5