随笔分类 -  算法_动态规划

摘要:题解报告:hdu 2089 不要62 Problem Description 杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。不吉 阅读全文
posted @ 2018-11-30 22:49 霜雪千年 阅读(391) 评论(0) 推荐(0) 编辑
摘要:题解报告:poj 2955 Brackets(括号匹配) Description We give the following inductive definition of a “regular brackets” sequence: the empty sequence is a regular 阅读全文
posted @ 2018-09-14 16:40 霜雪千年 阅读(254) 评论(0) 推荐(0) 编辑
摘要:Description There is an old stone game.At the beginning of the game the player picks n(1<=n<=50000) piles of stones in a line. The goal is to merge th 阅读全文
posted @ 2018-09-13 19:37 霜雪千年 阅读(686) 评论(0) 推荐(0) 编辑
摘要:描述 有N堆石子排成一排,每堆石子有一定的数量。现要将N堆石子并成为一堆。合并的过程只能每次将相邻的两堆石子堆成一堆,每次合并花费的代价为这两堆石子的和,经过N-1次合并后成为一堆。求出总的代价最小值。 输入 有多组测试数据,输入到文件结束。每组测试数据第一行有一个整数n,表示有n堆石子。接下来的一 阅读全文
posted @ 2018-09-11 00:01 霜雪千年 阅读(265) 评论(0) 推荐(0) 编辑
摘要:Problem Description A school bought the first computer some time ago(so this computer's id is 1). During the recent years the school bought N-1 new co 阅读全文
posted @ 2018-09-07 23:53 霜雪千年 阅读(283) 评论(0) 推荐(0) 编辑
摘要:Problem Description There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical st 阅读全文
posted @ 2018-09-05 10:38 霜雪千年 阅读(220) 评论(0) 推荐(0) 编辑
摘要:Problem Description People in Silverland use square coins. Not only they have square shapes but also their values are square numbers. Coins with value 阅读全文
posted @ 2018-08-27 14:52 霜雪千年 阅读(322) 评论(0) 推荐(0) 编辑
摘要:Problem Description Speakless很早就想出国,现在他已经考完了所有需要的考试,准备了所有要准备的材料,于是,便需要去申请学校了。要申请国外的任何大学,你都要交纳一定的申请费用,这可是很惊人的。Speakless没有多少钱,总共只攒了n万美元。他将在m个学校中选择若干的(当然 阅读全文
posted @ 2018-08-26 22:38 霜雪千年 阅读(164) 评论(0) 推荐(0) 编辑
摘要:Problem Description FatMouse believes that the fatter a mouse is, the faster it runs. To disprove this, you want to take the data on a collection of m 阅读全文
posted @ 2018-08-26 20:39 霜雪千年 阅读(292) 评论(0) 推荐(0) 编辑
摘要:Problem Description Nowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and kno 阅读全文
posted @ 2018-08-26 18:14 霜雪千年 阅读(142) 评论(0) 推荐(0) 编辑
摘要:Description A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequence ( a1, a2, ..., aN) be any seq 阅读全文
posted @ 2018-08-26 15:00 霜雪千年 阅读(188) 评论(0) 推荐(0) 编辑
摘要:描述: 直接说题意,完全背包定义有N种物品和一个容量为V的背包,每种物品都有无限件可用。第i种物品的体积是c,价值是w。求解将哪些物品装入背包可使这些物品的体积总和不超过背包容量,且价值总和最大。本题要求是背包恰好装满背包时,求出最大价值总和是多少。如果不能恰好装满背包,输出NO。 输入: 第一行: 阅读全文
posted @ 2018-08-25 10:10 霜雪千年 阅读(491) 评论(0) 推荐(0) 编辑
摘要:Problem Description Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this actio 阅读全文
posted @ 2018-08-24 23:23 霜雪千年 阅读(245) 评论(0) 推荐(0) 编辑
摘要:Problem Description Whuacmers use coins.They have coins of value A1,A2,A3...An Silverland dollar. One day Hibix opened purse and found there were some 阅读全文
posted @ 2018-08-23 15:43 霜雪千年 阅读(153) 评论(0) 推荐(0) 编辑
摘要:Problem Description Marsha and Bill own a collection of marbles. They want to split the collection among themselves so that both receive an equal shar 阅读全文
posted @ 2018-08-23 14:43 霜雪千年 阅读(175) 评论(0) 推荐(0) 编辑
摘要:Problem Description Nowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College had 阅读全文
posted @ 2018-08-23 11:08 霜雪千年 阅读(203) 评论(0) 推荐(0) 编辑
摘要:Problem Description 急!灾区的食物依然短缺!为了挽救灾区同胞的生命,心系灾区同胞的你准备自己采购一些粮食支援灾区,现在假设你一共有资金n元,而市场有m种大米,每种大米都是袋装产品,其价格不等,并且只能整袋购买。请问:你用有限的资金最多能采购多少公斤粮食呢?后记:人生是一个充满了变 阅读全文
posted @ 2018-08-23 10:41 霜雪千年 阅读(181) 评论(0) 推荐(0) 编辑
摘要:Problem Description 电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售,每种菜 阅读全文
posted @ 2018-08-22 23:19 霜雪千年 阅读(119) 评论(0) 推荐(0) 编辑
摘要:Problem Description The company "21st Century Fruits" has specialized in creating new sorts of fruits by transferring genes from one fruit into the ge 阅读全文
posted @ 2018-08-21 23:29 霜雪千年 阅读(169) 评论(0) 推荐(0) 编辑
摘要:数数有多少 数数有多少 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: 小财最近新开了一家公司,招了n个员工,但是因为资金问题,办公楼只有m间办公室,于是 阅读全文
posted @ 2018-08-06 11:45 霜雪千年 阅读(720) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示