![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HDU
文章平均质量分 80
risker_2013
这个作者很懒,什么都没留下…
展开
-
hdu 2421
#include#include#include#define MAXN 1010using namespace std;int prim[MAXN],p[200];void init() { int i, j, k = 0; memset(prim,1,sizeof(prim)); for(i=2;i<35;++i) { if(pr原创 2014-07-31 19:06:21 · 686 阅读 · 0 评论 -
NEFU—OJ 454 美丽的数
美丽的数Time Limit 1000msMemory Limit 65536Kdescription有些数总是与众不同,它们认为自己比其它数美丽。数与数之间是怎样比美丽的呢?它们往往看谁拥有的质数数字多!例如333只有一个质数数字3,3563有两种质数数字3和5,而6不是质数数字。原创 2013-09-03 21:22:59 · 1041 阅读 · 0 评论 -
hdu 1062 Text Reverse(字符串处理,简单模拟)
Text ReverseTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13435 Accepted Submission(s): 5138Problem DescriptionIgnatius lik原创 2013-09-03 21:13:06 · 988 阅读 · 0 评论 -
hdu 1161 Eddy's mistakes
Eddy's mistakesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6158 Accepted Submission(s): 3497Problem DescriptionEddy usual原创 2013-09-01 13:15:13 · 552 阅读 · 0 评论 -
hdu 1165 Eddy's research II
Eddy's research IITime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2576 Accepted Submission(s): 943Problem DescriptionAs is kn原创 2013-08-31 17:39:06 · 702 阅读 · 0 评论 -
hdu 1164 Eddy's research I
Eddy's research ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5201 Accepted Submission(s): 3127Problem DescriptionEddy's i原创 2013-08-31 17:03:42 · 553 阅读 · 0 评论 -
hdu 1163 Eddy's digital Roots
Eddy's digital RootsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3600 Accepted Submission(s): 2038Problem DescriptionThe d原创 2013-08-31 15:52:52 · 508 阅读 · 0 评论 -
杭电hdu题目分类
1001 整数求和 水题1002 C语言实验题——两个数比较 水题1003 1、2、3、4、5... 简单题1004 渊子赛马 排序+贪心的方法归并1005 Hero In Maze 广度搜索1006 Redraiment猜想 数论:容斥定理1007 童年生活二三事 递推题1008 University 简单hash1009 目标柏林 简单模拟题1010 Rai转载 2013-08-21 18:16:10 · 2992 阅读 · 0 评论 -
hdu 1077 Catching Fish
Catching FishTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1076 Accepted Submission(s): 401Problem DescriptionIgnatius likes c原创 2013-08-31 15:20:54 · 1083 阅读 · 0 评论 -
hdu 4617 Weapon (几何)
Description Doctor D. are researching for a horrific weapon. The muzzle of the weapon is a circle. When it fires, rays form a cylinder that runs through the circle verticality in both side. If o原创 2013-10-17 21:51:07 · 626 阅读 · 0 评论 -
Hdu 1176 免费馅饼(简单DP)
Problem Description 都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,所以他只能在小径上接。由于gameboy平时老呆在房间里玩游戏,虽然在游戏原创 2013-11-06 11:31:46 · 531 阅读 · 0 评论 -
hdu 1050 Moving Tables(最大区间覆盖问题)
Moving TablesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15906 Accepted Submission(s): 5470Problem Description The famous原创 2013-11-06 18:22:16 · 888 阅读 · 0 评论 -
hdu 4473 Exam
ExamTime Limit: 20000/10000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 951 Accepted Submission(s): 411Problem DescriptionRikka is a high schoo原创 2014-07-31 18:46:25 · 618 阅读 · 0 评论 -
hdu 4891 The Great Pan 2014多校联合第三场
The Great PanTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1713 Accepted Submission(s): 349Problem Description As a progr原创 2014-07-31 17:59:14 · 780 阅读 · 0 评论 -
hdu 4882 ZCC Loves Codefires 2014年多校联合第二场
#include#include#include#include#include#define M 100100using namespace std;struct point{ int e; int k; double s;}p[M];bool cmp(point a,point b){ return a.s<b.s;}int main原创 2014-07-31 17:49:17 · 658 阅读 · 0 评论 -
hdu 4861 Couple doubi 2014年多校联合第一场
Couple doubiTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 943 Accepted Submission(s): 453Problem Description DouBiXp has原创 2014-07-31 17:41:52 · 564 阅读 · 0 评论 -
hdu 2098 分拆素数和
#include#include#include#includeconst int N=10010;using namespace std;bool is[N]; int main() { int m,n,t,i,j,k; memset(is,1,sizeof(is)); is[0]=is[1]=0; for(i=4;i<=N;i+=2)原创 2014-07-31 19:08:23 · 714 阅读 · 0 评论 -
Ural 1998 The old Padawan(二分)
1998. The old PadawanTime limit: 0.5 secondMemory limit: 64 MBYoda: Use the Force. Yes. Now, the stone. Feel it. Concentrate!Luke Skywalker is having exhausting practice at a God-f原创 2014-07-31 18:14:46 · 891 阅读 · 0 评论 -
hdu 4902 Nice boat 2014年多校联合第四场
点击打开题目链接Nice boatTime Limit: 30000/15000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 49 Accepted Submission(s): 17Problem Description原创 2014-07-31 18:06:17 · 1010 阅读 · 0 评论 -
hdu 3306 Another kind of Fibonacci
Another kind of FibonacciTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1513 Accepted Submission(s): 577Problem DescriptionA原创 2014-07-25 20:39:17 · 588 阅读 · 0 评论 -
hdu 1060 Leftmost Digit
Leftmost DigitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11006 Accepted Submission(s): 4213Problem DescriptionGiven a po原创 2013-08-28 20:57:09 · 544 阅读 · 0 评论 -
hdu 1021 Fibonacci Again
Fibonacci AgainTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 29602 Accepted Submission(s): 14363Problem DescriptionThere ar原创 2013-08-24 19:08:58 · 676 阅读 · 0 评论 -
hdu 1019 Least Common Multiple
Least Common MultipleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 23951 Accepted Submission(s): 8987Problem DescriptionThe原创 2013-08-24 18:43:19 · 424 阅读 · 0 评论 -
hdu 2028 Lowest Common Multiple Plus
题意是求n个数的最大公约数,挺简单的,水题一枚,可是wa了若干次,只因return m/gcd(m,n)*n;写成return m*n/gcd(m,n);至今不知为啥,请路过之人指教一二,不甚感谢! #include #include#includeusing namespace std;int gcd(int m,int n){ if(n==0)原创 2013-08-02 13:55:03 · 556 阅读 · 0 评论 -
hdu 2023 求平均成绩
求平均成绩Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 49036 Accepted Submission(s): 11655Problem Description假设一个班有n(n<=50)个学生,每人考m(m<=5)门课原创 2013-08-02 14:02:16 · 857 阅读 · 0 评论 -
hdu 2044 一只小蜜蜂...
本题也是斐波那契数列的简单应用~ 真是邪门啦,用scanf和printf就wa,改成cin和cout马上就A了!还是不解!一只小蜜蜂...Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 29891 Accept原创 2013-08-05 19:40:45 · 465 阅读 · 0 评论 -
hdu 2041 超级楼梯
找了半天规律,原来是斐波那契数列,水题~超级楼梯Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 23579 Accepted Submission(s): 12111Problem Desc原创 2013-08-05 16:00:11 · 486 阅读 · 0 评论 -
hdu 2039 三角形
三角形Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 36674 Accepted Submission(s): 12002Problem Description给定三条边,请你判断一下能不能组成一个三角形。原创 2013-08-04 16:42:42 · 575 阅读 · 0 评论 -
hdu 2031 进制转换
进制转换Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 18811 Accepted Submission(s): 10554Problem Description输入一个十进制数N,将它转换成R进制数输出。原创 2013-08-02 16:46:24 · 517 阅读 · 0 评论 -
hdu 2032 杨辉三角
杨辉三角Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 26966 Accepted Submission(s): 11284Problem Description还记得中学时候学过的杨辉三角吗?具体的原创 2013-08-02 17:06:18 · 614 阅读 · 0 评论 -
hdu 2034 人见人爱A-B
人见人爱A-BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 34611 Accepted Submission(s): 9729Problem Description参加过上个月月赛的同学一定还记得其中的一个原创 2013-08-02 20:19:23 · 710 阅读 · 0 评论 -
hdu 1003 Max Sum
Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in this sequence is 6 + (-1) + 5原创 2013-08-20 13:09:19 · 579 阅读 · 0 评论 -
hdu 3466 Proud Merchants(DP)
Proud MerchantsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Problem DescriptionRecently, iSea went to an ancient country. For such a long time, i原创 2013-08-20 19:06:02 · 584 阅读 · 0 评论 -
hdu 2054 A == B ?
这道题是我刚接触ACM的时候的一道题,那是连大数都不知道,以为这是一道水题,结果没过,今天又看见啦,就做一下啦,结果又wa了好几次才过~ A == B ?Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s):原创 2013-08-20 16:05:45 · 709 阅读 · 0 评论 -
hdu 1017 A Mathematical Curiosity
A Mathematical CuriosityTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 21806 Accepted Submission(s): 6830Problem Description原创 2013-08-24 15:20:27 · 587 阅读 · 0 评论 -
hdu 1012 u Calculate e
u Calculate eTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24821 Accepted Submission(s): 11035Problem DescriptionA simple m原创 2013-08-24 11:32:52 · 574 阅读 · 0 评论 -
hdu 1013 Digital Roots
Digital RootsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 39984 Accepted Submission(s): 12322Problem DescriptionThe digita原创 2013-08-24 14:46:34 · 584 阅读 · 0 评论 -
hdu 1008 Elevator
ElevatorTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 34566 Accepted Submission(s): 18849Problem DescriptionThe highest bui原创 2013-08-24 11:08:44 · 480 阅读 · 0 评论 -
hdu 1005 Number Sequence(找周期)
Number SequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 84185 Accepted Submission(s): 19963Problem DescriptionA number原创 2013-08-24 09:44:12 · 610 阅读 · 0 评论 -
hdu 1004 Let the Balloon Rise
Let the Balloon RiseTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 58652 Accepted Submission(s): 21543Problem DescriptionCon原创 2013-08-23 20:09:27 · 511 阅读 · 0 评论