无谓的味道

导航

随笔分类 -  HDU

hdu 1170 Balloon Comes!
摘要:DescriptionThe contest starts now! How excited it is to see balloons floating around. You, one of the best programmers in HDU, can get a very beautifu... 阅读全文

posted @ 2015-10-24 20:07 无谓的味道 阅读(161) 评论(0) 推荐(0)

hdu 1215 七夕节
摘要:Description七夕节那天,月老来到数字王国,他在城门上贴了一张告示,并且和数字王国的人们说:"你们想知道你们的另一半是谁吗?那就按照告示上的方法去找吧!"人们纷纷来到告示前,都想知道谁才是自己的另一半.告示如下:数字N的因子就是所有比N小又能被N整除的所有正整数,如12的因子有1,2,3,4... 阅读全文

posted @ 2015-10-24 19:54 无谓的味道 阅读(148) 评论(0) 推荐(0)

hdu 1325 && poj 1308 Is It A Tree?(并查集)
摘要:DescriptionA tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edg... 阅读全文

posted @ 2015-10-19 20:44 无谓的味道 阅读(161) 评论(0) 推荐(0)

hdu 1272 小希的迷宫(并查集)
摘要:Problem Description上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从... 阅读全文

posted @ 2015-10-19 19:55 无谓的味道 阅读(157) 评论(0) 推荐(0)

hdu 1394 Minimum Inversion Number 线段树
摘要:Problem DescriptionThe inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i aj.For a given sequ... 阅读全文

posted @ 2015-10-17 16:36 无谓的味道 阅读(175) 评论(0) 推荐(0)

hdu 1290_献给杭电五十周年校庆的礼物
摘要:Description或许你曾经牢骚满腹或许你依然心怀忧伤或许你近在咫尺或许你我天各一方对于每一个学子母校永远航行在生命的海洋今年是我们杭电建校五十周年,这是一个值得祝福的日子。我们该送给母校一个怎样的礼物呢?对于目前的大家来说,最好的礼物当然是省赛中的好成绩,我不能参赛,就送给学校一个DOOM I... 阅读全文

posted @ 2015-10-16 15:32 无谓的味道 阅读(176) 评论(0) 推荐(0)

hdu 1166 敌兵布阵(线段树)
摘要:Problem DescriptionC国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一... 阅读全文

posted @ 2015-10-15 19:48 无谓的味道 阅读(192) 评论(0) 推荐(0)

hdu 1754 I Hate It(线段树)
摘要:Problem Description很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。Input本题目包含多组测试,请处理到... 阅读全文

posted @ 2015-10-12 21:02 无谓的味道 阅读(159) 评论(0) 推荐(0)

HDU 1176 免费馅饼
摘要:Description都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,... 阅读全文

posted @ 2015-08-15 10:57 无谓的味道 阅读(167) 评论(0) 推荐(0)

HDU 1058 Humble Numbers
摘要:DescriptionA number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18,... 阅读全文

posted @ 2015-08-15 09:25 无谓的味道 阅读(165) 评论(0) 推荐(0)

HDU 1003 MAXSUM(最大子序列和)
摘要: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 ma... 阅读全文

posted @ 2015-08-14 15:19 无谓的味道 阅读(155) 评论(0) 推荐(0)

HDU1864 最大报销额
摘要:Description现有一笔经费可以报销一定额度的发票。允许报销的发票类型包括买图书(A类)、文具(B类)、差旅(C类),要求每张发票的总额不得超过1000元,每张发票上,单项物品的价值不得超过600元。现请你编写程序,在给出的一堆发票中找出可以报销的、不超过给定额度的最大报销额。Input测试输... 阅读全文

posted @ 2015-08-13 17:33 无谓的味道 阅读(157) 评论(0) 推荐(0)

HDU 1114 Piggy-Bank(完全背包)
摘要:DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes f... 阅读全文

posted @ 2015-08-13 15:54 无谓的味道 阅读(166) 评论(0) 推荐(0)

HDU 2955 Robberies
摘要:The aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because they become t... 阅读全文

posted @ 2015-08-13 14:21 无谓的味道 阅读(169) 评论(0) 推荐(0)