Kuangbin专题
ilove_Moretz
这个作者很懒,什么都没留下…
展开
-
[kuangbin带你飞]专题十二 基础DP1 I - 最少拦截系统 HDU - 1257
题目描述 某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能超过前一发的高度.某天,雷达捕捉到敌国的导弹来袭.由于该系统还在试用阶段,所以只有一套系统,因此有可能不能拦截所有的导弹.怎么办呢?多搞几套系统呗!你说说倒蛮容易,成本呢?成本是个大问题啊.所以俺就到这里来求救了,请帮助计算一下最少需要多少套拦截系统.Input输入若干组数据.每组数据包括:导弹总个数(正整数),导弹依此飞来的高度(雷达给出的高原创 2020-11-19 22:19:01 · 200 阅读 · 0 评论 -
[kuangbin带你飞]专题十二 基础DP1 H - Tickets HDU - 1260
题目描述 Jesus, what a great movie! Thousands of people are rushing to the cinema. However, this is really a tuff time for Joe who sells the film tickets. He is wandering when could he go back home as early as possible.A good approach, reducing the total tim原创 2020-10-27 21:23:39 · 184 阅读 · 0 评论 -
[kuangbin带你飞]专题十二 基础DP1 G - 免费馅饼 HDU - 1176
题目描述 都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所gameboy>马上卸下身上的背包去接。但由于小径两侧都不能站人,所以他只能在小径上接。由于gameboy平时老呆在房间里玩游戏,虽然在游戏中是个身手敏捷的高手,但在现实中运动神经特别迟钝,每秒种只有在移动不超过一米的范围内接住坠落的馅饼。现在给这条小径如图标上坐标:为了使问题原创 2020-10-22 10:38:05 · 170 阅读 · 0 评论 -
[kuangbin带你飞]专题十二 基础DP1 F - Piggy-Bank HDU - 1114【完全背包】
题目描述Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound Money (IBM). The idea behind is simple. Whenever some ACM member has any small money, he原创 2020-10-16 22:10:42 · 236 阅读 · 0 评论 -
[kuangbin带你飞]专题十二 基础DP1 D - Doing Homework HDU - 1074
题目描述 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. If Ignatius hands in the homework after the deadline, the teacher will reduce his score of t原创 2020-10-05 21:57:57 · 2077 阅读 · 0 评论 -
[kuangbin带你飞]专题十二 基础DP1 C - Monkey and Banana HDU - 1069
题目描述A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time, provide the monkey with some blocks. If the monkey is clever enough, it shall be able to reach the原创 2020-09-22 00:26:36 · 180 阅读 · 0 评论 -
[kuangbin带你飞]专题十二 基础DP1 B - Ignatius and the Princess IV HDU - 1029
题目描述"OK, you are not too bad, em... But you can never pass the next test." feng5166 says."I will tell you an odd number N, and then N integers. There will be a special integer among them, you have to tell me which integer is the special one after I tell原创 2020-09-21 00:08:57 · 237 阅读 · 0 评论 -
[kuangbin带你飞]专题十二 基础DP1 A - Max Sum Plus Plus HDU - 1024
题目描述Now I think you have got an AC in Ignatius.L's "Max Sum" problem. To be a brave ACMer, we always challenge ourselves to more difficult problems. Now you are faced with a more difficult problem.Given a consecutive number sequence S1, S2, S3, S4 ... S原创 2020-09-19 20:48:09 · 251 阅读 · 0 评论 -
[kuangbin带你飞]专题一 简单搜索 H - Pots POJ - 3414
题目描述You are given two pots, having the volume of A and B liters respectively. The following operations can be performed: FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap; DROP(i) empty the pot i to the drain; POUR(i,j) pour from原创 2020-09-02 09:44:06 · 195 阅读 · 0 评论 -
[kuangbin带你飞]专题一 简单搜索F - Prime Path POJ - 3126
题目描述The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room numbers on their offices.— It is a matter of security to change such things every now and then, to原创 2020-08-03 09:37:34 · 215 阅读 · 0 评论 -
[kuangbin带你飞]专题一 简单搜索POJ-1426
题目描述iven a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 200 and there is a corresponding m containing no more than 100 de原创 2020-07-27 22:54:31 · 178 阅读 · 0 评论 -
[kuangbin带你飞]专题一 简单搜索 D - Fliptile POJ - 3279
题目描述Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which they manipulate an M × N grid (1 ≤ M ≤ 15; 1 ≤ N ≤ 15) of square tiles, each of which is colored black o原创 2020-07-20 11:18:40 · 230 阅读 · 0 评论 -
[kuangbin带你飞]专题一 简单搜索 POJ-3278
题目描述Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0 ≤ K ≤ 100,000) on the same number line. Farmer John has two mo原创 2020-07-05 09:18:24 · 184 阅读 · 0 评论 -
[kuangbin带你飞]专题一 简单搜索 B - Dungeon Master
题目You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to move one unit north, south, east, west, up or down. You cannot move diagonally原创 2020-06-29 21:45:26 · 209 阅读 · 0 评论 -
[kuangbin带你飞]专题一 简单搜索
题目描述在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n <= 8 , k <= n当为-1 -1时表示输入结束。随后的n行描述了棋盘的形状:每行有n个字符,其中 # 表示棋盘区域, .原创 2020-06-22 19:13:48 · 188 阅读 · 0 评论