
杭电OJ
文章平均质量分 77
sdau164185
这个作者很懒,什么都没留下…
展开
-
杭电OJ--1.2.1--Elevator
Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specifie原创 2017-05-21 21:24:24 · 439 阅读 · 0 评论 -
HDU--dp练习--1021--最少拦截系统
题目:Problem Description某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能超过前一发的高度.某天,雷达捕捉到敌国的导弹来袭.由于该系统还在试用阶段,所以只有一套系统,因此有可能不能拦截所有的导弹.怎么办呢?多搞几套系统呗!你说说倒蛮容易,成本呢?成本是个大问题啊.原创 2017-07-24 16:57:06 · 362 阅读 · 0 评论 -
HDU--dp练习--1014--I NEED A OFFER!
题目:Problem DescriptionSpeakless很早就想出国,现在他已经考完了所有需要的考试,准备了所有要准备的材料,于是,便需要去申请学校了。要申请国外的任何大学,你都要交纳一定的申请费用,这可是很惊人的。Speakless没有多少钱,总共只攒了n万美元。他将在m个学校中选择若干的(当然要在他的经济承受范围内)。每个学校都有不同的申请费用a(万美元),并且Spe原创 2017-07-24 16:50:18 · 279 阅读 · 0 评论 -
HDU--dp练习--1013--免费馅饼
题目:Problem Description都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,所以他只能在小径上接。由于gameboy平时老呆在房间里玩原创 2017-07-24 16:41:22 · 234 阅读 · 0 评论 -
HDU--dp练习--1009--Big Event in HDU
题目:Problem DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College had ever been split into Computer College原创 2017-07-24 16:23:49 · 256 阅读 · 0 评论 -
HDU--dp练习--1007--Bone Collector
题目:Problem DescriptionMany years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s , also he went to原创 2017-07-24 16:03:14 · 245 阅读 · 0 评论 -
HDU--dp练习--1004--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 +原创 2017-07-24 15:54:29 · 203 阅读 · 0 评论 -
HDU--dp练习--1009--命运
题目:Problem Description穿过幽谷意味着离大魔王lemon已经无限接近了!可谁能想到,yifenfei在斩杀了一些虾兵蟹将后,却再次面临命运大迷宫的考验,这是魔王lemon设下的又一个机关。要知道,不论何人,若在迷宫中被困1小时以上,则必死无疑!可怜的yifenfei为了去救MM,义无返顾地跳进了迷宫。让我们一起帮帮执着的他吧!命运大迷宫可以看成是原创 2017-07-24 16:14:41 · 262 阅读 · 0 评论 -
HDU--dp练习--1008--Super Jumping! Jumping! Jumping!
题目:Problem DescriptionNowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introdu原创 2017-07-24 16:08:01 · 249 阅读 · 0 评论 -
HDU--dp练习--1003--最大连续子序列
题目:Problem Description给定K个整数的序列{ N1, N2, ..., NK },其任意连续子序列可表示为{ Ni, Ni+1, ..., Nj },其中 1 <= i <= j <= K。最大连续子序列是所有连续子序列中元素和最大的一个, 例如给定序列{ -2, 11, -4, 13, -5, -2 },其最大连续子序列为{ 11, -4原创 2017-07-24 15:43:02 · 253 阅读 · 0 评论 -
HDU--dp练习--1001--Robberies
Problem DescriptionThe 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 too greedy. He has decided t原创 2017-07-24 15:25:48 · 291 阅读 · 0 评论 -
HDU--dp练习--1022--Common Subsequence
题目:Problem DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence Z = is a subsequence of X i原创 2017-07-29 16:17:39 · 192 阅读 · 0 评论 -
杭电OJ--1.2.2--Biker's Trip Odometer
Problem DescriptionMost bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attached to one of the spokes on the front wheel so that it w原创 2017-05-22 12:05:06 · 417 阅读 · 0 评论 -
杭电OJ--1.2.3--Climbing Worm
Problem DescriptionAn inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a minute before climbing again. During the rest,原创 2017-05-22 12:09:53 · 314 阅读 · 0 评论 -
暑假练习--hdoj--搜索--suduku
这个题必须要写一篇博客了……这个题算是做过的最久的一道题吧。想了很长时间,一直没想好怎么做。要保证每一行每一列还有没个格子都不重复,行和列还好说,每个格子不一样不知道怎么做。搜索的话,开始是想几个方向一起搜,但是想想不行,又想一行一列一起搜,想想也不行。想了好久都不知道怎么搜。实在想不出来了,最后了解了一下别人的思路,一行一行的搜……感觉也考虑过……但是就这个没写过了。下面是原题:(感觉这个代原创 2017-08-02 17:52:26 · 278 阅读 · 0 评论