![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HDU
文章平均质量分 82
AC_Dreameng
行有余力,则来刷题!
展开
-
HDU2084 数塔 poj1163The Triangle
#include int main(){ int a[105][105]; int i,j,n; while(scanf("%d",&n)!=EOF) { for (i=0; i<n; i++) { for (j=0; j<=i; j++) { sca原创 2015-10-20 23:11:02 · 1125 阅读 · 0 评论 -
杭电 HDU 2030 汉字统计
统计给定文本文件中汉字的个数。对于每一段文本,输出其中的汉字的个数,每个测试实例的输出占一行。[Hint:]从汉字机内码的特点考虑~原创 2015-10-20 23:44:58 · 1613 阅读 · 0 评论 -
杭电1003 Max Sum (dp)
杭电1003 Max Sum (dp)原创 2015-09-22 23:22:51 · 1604 阅读 · 0 评论 -
HDU 2070 叠框
HDU 2074 HDUOJ2074需要的时候,就把一个个大小差一圈的筐叠上去,使得从上往下看时,边筐花色交错。这个工作现在要让计算机来完成,得看你的了。 Input输入是一个个的三元组,分别是,外筐尺寸n(n为满足0<n<80的奇整数),中心花色字符,外筐花色字符,后二者都为ASCII可见字符; Output输出叠在一起的筐图案,中心花色与外筐花色字符从内层起交错相叠,多筐相叠时,最外筐的角总是被打磨掉。叠筐与叠筐之间应有一行间隔。原创 2015-11-22 16:46:37 · 1193 阅读 · 0 评论 -
HDU5115 Dire Wolf(区间DP)
Dire WolfDire wolves, also known as Dark wolves, are extraordinarily large and powerful wolves. Many, if not all, Dire Wolves appear to originate from Draenor.Dire wolves look like normal wolves, but these creatures are of nearly twice the size. These po原创 2015-12-06 22:09:23 · 1076 阅读 · 0 评论 -
HDU2013蟠桃记(递归和非递归两种方式)
蟠桃记Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 50440 Accepted Submission(s): 37816Problem Description喜欢西游记的同学肯定都知道悟空偷吃蟠原创 2016-03-01 14:33:25 · 1274 阅读 · 0 评论 -
HDU2015偶数求和
偶数求和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 69758 Accepted Submission(s): 29740Problem Description有一个长度为n(n Inp原创 2016-03-01 14:45:23 · 2274 阅读 · 0 评论 -
HDU1033 Edge(读懂题目是关键呀,两种方式实现!)
EdgeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2842 Accepted Submission(s): 1796Problem DescriptionFor products that are原创 2016-03-02 20:01:02 · 1939 阅读 · 1 评论 -
HDU3823Prime Friend(大素数)
Prime FriendTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2619 Accepted Submission(s): 523Problem DescriptionBesides the or原创 2016-03-02 22:06:54 · 1682 阅读 · 0 评论 -
HDU 1196 Lowest Bit(基础题,有个小技巧)
Lowest BitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10560 Accepted Submission(s): 7751Problem DescriptionGiven an positiv原创 2016-03-29 17:11:20 · 2205 阅读 · 0 评论 -
HDU 1753 大明A+B(大小数加法,C模拟,Java BigDecimal)
大明A+BTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11240 Accepted Submission(s): 4044Problem Description话说,经过了漫长的一个多月,小明已原创 2016-03-29 20:01:49 · 1417 阅读 · 0 评论 -
HDU 1194 Beat the Spread!(数学问题呀..)
Beat the Spread!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5837 Accepted Submission(s): 3076Problem DescriptionSuperbowl S原创 2016-03-29 16:30:23 · 1459 阅读 · 0 评论 -
HDU 2553 N皇后问题(还是DFS呀)
N皇后问题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 15739 Accepted Submission(s): 7154Problem Description在N*N的方格棋盘放置了N个皇后,使得原创 2016-03-29 13:55:22 · 900 阅读 · 0 评论 -
HDU 1002 A + B Problem II(大数加法,C,Java两个版本)
A + B Problem IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 300365 Accepted Submission(s): 57917Problem DescriptionI have原创 2016-03-27 23:37:57 · 1814 阅读 · 0 评论 -
HDU 2035 人见人爱A^B (快速幂取模)
人见人爱A^BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 33421 Accepted Submission(s): 22668求A^B的最后三位数表示的整数。说明:A^B的含义是“A的B次方”Problem Descript原创 2016-03-24 23:13:55 · 1268 阅读 · 0 评论 -
HDU 1312 Red and Black(经典搜索,DFS&BFS三种方式)
Red and BlackProblem DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to原创 2016-03-18 23:19:49 · 4671 阅读 · 0 评论 -
HDU 1016 Prime Ring Problem(搜索入门题 DFS,多种方式)
州),英雄互娱(杭州)Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 39066 Accepted Submission(s): 17239Probl原创 2016-03-18 20:55:48 · 1295 阅读 · 0 评论 -
HDU 4548 美素数(打表呀,有个小技巧)
美素数Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 5066 Accepted Submission(s): 1721Problem Description 小明对数的研究比较热爱,一谈到数,脑子里原创 2016-03-30 22:19:57 · 2133 阅读 · 0 评论 -
HDU 2153 仙人球的残影(类蛇形填数)
仙人球的残影Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6791 Accepted Submission(s): 3154Problem Description在美丽的HDU,有一名大三的同学,他的原创 2016-03-30 20:53:19 · 1502 阅读 · 1 评论 -
HDU1998奇数阶魔方(连续摆数法(也称暹罗法)构造)
奇数阶魔方Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3288 Accepted Submission(s): 1762Problem Description一个 n 阶方阵的元素是1,2,...,原创 2016-03-08 11:29:28 · 2067 阅读 · 0 评论 -
HDU1372&POJ2243Knight Moves(BFS呀,转换一下)
Knight MovesTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 13145 Accepted: 7369DescriptionA friend of you is doing research on the Traveling Knight Pro原创 2016-03-20 22:47:14 · 937 阅读 · 0 评论 -
HDU1000A + B Problem(入门题,c,Java)
HDU1000 C,Java原创 2016-02-23 18:25:32 · 1855 阅读 · 0 评论 -
杭电1003 Max Sum
杭电1003 Max Sum原创 2015-09-18 22:15:33 · 1175 阅读 · 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): 100790 Accepted Submission(s): 38657Problem DescriptionCo原创 2016-04-01 23:27:03 · 1100 阅读 · 0 评论 -
HDU2519新生晚会(组合数公式)
新生晚会Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12068 Accepted Submission(s): 4173Problem Description开学了,杭电又迎来了好多新生。ACMer原创 2016-03-09 19:55:01 · 1146 阅读 · 0 评论 -
HDU 2502月之数(递推呀。。。)
月之数Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8796 Accepted Submission(s): 5157Problem Description当寒月还在读大一的时候,他在一本武林秘籍原创 2016-03-09 21:31:32 · 816 阅读 · 0 评论 -
HDU2000ASCII码排序(C,Java两个版本)
ASCII码排序Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 129693 Accepted Submission(s): 53459Problem Description输入三个字符后,按各字符原创 2016-02-24 23:34:13 · 1837 阅读 · 0 评论 -
HDU2001计算两点间的距离(C,Java用DecimalFormat格式控制)
输入两点坐标(X1,Y1),(X2,Y2),计算并输出两点间的距离。输入数据有多组,每组占一行,由4个实数组成,分别表示x1,y1,x2,y2,数据之间用空格隔开。原创 2016-02-24 23:48:16 · 1515 阅读 · 0 评论 -
HDU2009求数列的和(两种思想)
求数列的和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 65636 Accepted Submission(s): 40054Problem Description数列的定义如下:数列的第一项为n原创 2016-02-25 13:29:14 · 2507 阅读 · 0 评论 -
HDU 2099 整除的尾数(暴力模拟)
整除的尾数Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 33056 Accepted Submission(s): 13986Problem Description一个整数,只知道前几位,不知道末二位原创 2016-04-04 17:00:45 · 1031 阅读 · 0 评论 -
LA 3266&HDU 1052 Tian Ji -- The Horse Racing(田忌赛马,贪心)
Tian Ji -- The Horse RacingTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 25009 Accepted Submission(s): 7289Problem Description原创 2016-04-04 18:31:14 · 1937 阅读 · 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): 8298 Accepted Submission(s): 5085Problem DescriptionEddy's i原创 2016-04-04 23:16:07 · 886 阅读 · 0 评论 -
HDU 2018 母牛的故事(递推呀...)
母牛的故事Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 64827 Accepted Submission(s): 32236Problem Description有一头母牛,它每年年初生一头小母牛。原创 2016-03-24 21:22:02 · 1118 阅读 · 0 评论 -
HDU 2028 Lowest Common Multiple Plus(求多个数的最小公倍数,转换呀)
Lowest Common Multiple PlusTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 49348 Accepted Submission(s): 20401Problem Description原创 2016-03-24 21:42:20 · 858 阅读 · 1 评论 -
HDU 2031 进制转换(模拟)
进制转换Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 39009 Accepted Submission(s): 21348Problem Description输入一个十进制数N,将它转换成R进制数原创 2016-03-24 21:54:32 · 1164 阅读 · 0 评论 -
HDU 2032 杨辉三角(格式是关键)
杨辉三角Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 53787 Accepted Submission(s): 22363Problem Description还记得中学时候学过的杨辉三角吗?具体的原创 2016-03-24 22:11:45 · 1378 阅读 · 0 评论 -
HDU 2034 人见人爱A-B(坑呀...格式)
参加过上个月月赛的同学一定还记得其中的一个最简单的题目,就是{A}+{B},那个题目求的是两个集合的并集,今天我们这个A-B求的是两个集合的差,就是做集合的减法运算。(当然,大家都知道集合的定义,就是同一个集合中不会有两个相同的元素,这里还是提醒大家一下)呵呵,很简单吧?人见人爱A-BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6488原创 2016-03-24 22:59:20 · 1864 阅读 · 1 评论 -
HDU 4920 Matrix multiplication(矩阵乘法,cin,cout超时呀)
Matrix multiplicationTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 3989 Accepted Submission(s): 1624Problem DescriptionGi原创 2016-04-12 21:40:53 · 989 阅读 · 0 评论 -
HDU 1078 FatMouse and Cheese (记忆化搜索)
FatMouse and CheeseTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7730 Accepted Submission(s): 3202Problem DescriptionFatMou原创 2016-04-25 11:12:18 · 1336 阅读 · 2 评论 -
HDU 2181哈密顿绕行世界问题(还是DFS)
哈密顿绕行世界问题Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2670 Accepted Submission(s): 1673Problem Description一个规则的实心十二面体,它的 2原创 2016-04-23 22:19:16 · 1155 阅读 · 0 评论