
HDU
文章平均质量分 79
ljyanjy
新的开始
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU 2023 求平均成绩
求平均成绩 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description假设一个班有n(n<=50)个学生,每人考m(m<=5)门课,求每个学生的平均成绩和每门课的平均成绩,并输出各科成绩均大于等于平均成绩的学生数量。Input输入数据有多个测试实例,每个原创 2017-11-05 21:29:38 · 355 阅读 · 0 评论 -
hdu 1228 A+B
A + B HDU - 1228 读入两个小于100的正整数A和B,计算A+B. 需要注意的是:A和B的每一位数字由对应的英文单词给出. Input测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结果不要输出. Output对每个测试用例输出1行,即A+B的值. Sample Inputone + two = t...原创 2018-05-21 19:44:08 · 261 阅读 · 0 评论 -
hdu 1276 士兵队列训练问题
士兵队列训练问题 HDU - 1276 某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报到二的出列,剩下的向小序号方向靠拢,再从头开始进行一至三报数,凡报到三的出列,剩下的向小序号方向靠拢,继续从头开始进行一至二报数。。。,以后从头开始轮流进行一至二报数、一至三报数直到剩下的人数不超过三人为止。 Input本题有多个测试数据组,第一行为...原创 2018-05-10 19:23:23 · 418 阅读 · 0 评论 -
Ignatius and the Princess I(bfs+记录路径)hdu 1026
Ignatius and the Princess ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Special JudgeProblem DescriptionThe Princess has been abducted by the BEelzebub feng5166, ...原创 2018-04-24 08:51:00 · 284 阅读 · 0 评论 -
Hero hdu 4310
Hero Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 7532 Accepted Submission(s): 3115 Problem Description When playing DotA with god-...原创 2018-03-27 15:34:50 · 269 阅读 · 0 评论 -
Sum It Up hdu 1258
Sum It Up Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7345 Accepted Submission(s): 3874 Problem Description Given a specified tota...原创 2018-03-30 11:12:57 · 265 阅读 · 0 评论 -
胜利大逃亡 hdu 1253 && 亡命逃窜 (bfs)nyoj 523
题目描述 从前有个叫hck的骑士,为了救我们美丽的公主,潜入魔王的老巢,够英雄吧。不过英雄不是这么好当的。这个可怜的娃被魔王抓住了,倍受折磨,生 死一线。有一天魔王出去约会了,这可是一个千载难逢的逃命机会。你现在的任务就是判断一下这个英雄未遂的孩子能不能在魔王回来之前逃出魔王的城堡,成功逃生,最后迎娶我们美丽的公主。 魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*...原创 2017-11-13 20:34:16 · 394 阅读 · 0 评论 -
Red and Black
Red and Black Problem Description There 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 on...原创 2018-02-23 12:44:18 · 223 阅读 · 0 评论 -
Prime Ring Problem
Prime Ring Problem Problem Description A ring is compose of n circles as shown in diagram. Put natural number 1, 2, …, n into each circle separately, and the sum of numbers in two adjacent circles ...原创 2018-02-16 14:00:46 · 254 阅读 · 0 评论 -
hdu 4296 Buildings
Buildings Problem Description Have you ever heard the story of Blue.Mary, the great civil engineer? Unlike Mr. Wolowitz, Dr. Blue.Mary has accomplished many great projects, one of which is the Gua...原创 2018-02-12 16:24:16 · 288 阅读 · 0 评论 -
task(贪心)
Task Problem Description Today the company has m tasks to complete. The ith task need xi minutes to complete. Meanwhile, this task has a difficulty level yi. The machine whose level below this task’原创 2018-02-05 16:56:04 · 587 阅读 · 0 评论 -
迷瘴
迷瘴 Problem Description 通过悬崖的yifenfei,又面临着幽谷的考验—— 幽谷周围瘴气弥漫,静的可怕,隐约可见地上堆满了骷髅。由于此处长年不见天日,导致空气中布满了毒素,一旦吸入体内,便会全身溃烂而死。 幸好yifenfei早有防备,提前备好了解药材料(各种浓度的万能药水)。现在只需按照配置成不同比例的浓度。 现已知yifenfei随身携带有n种浓度的万能药水,体原创 2018-02-05 15:00:07 · 284 阅读 · 0 评论 -
Doing Homework again (贪心)
Doing Homework again Problem Description Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework.原创 2018-02-04 15:28:11 · 344 阅读 · 0 评论 -
Wooden Sticks (贪心)
Wooden Sticks Problem Description There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one原创 2018-02-04 14:44:35 · 426 阅读 · 0 评论 -
Moving Tables (贪心)
Moving Tables Problem Description The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure. The floor has 200 rooms each on the nort原创 2018-02-03 20:39:55 · 445 阅读 · 0 评论 -
FatMouse' Trade (贪心)
FatMouse’ Trade Problem Description FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean. The warehouse has N rooms. Th原创 2018-02-03 16:42:59 · 298 阅读 · 0 评论 -
hdu 1043 eight (八数码+康托展开+记录路径)
Eight HDU - 1043 The 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 15 sliding tiles, each with a number from 1 to 15 on i...原创 2018-05-08 18:00:34 · 412 阅读 · 0 评论