上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 50 下一页
摘要: Description A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have 阅读全文
posted @ 2018-08-26 08:13 霜雪千年 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Description Jessica's a very lovely girl wooed by lots of boys. Recently she has a problem. The final exam is coming, yet she has spent little time on 阅读全文
posted @ 2018-08-25 20:24 霜雪千年 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Description A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) ar 阅读全文
posted @ 2018-08-25 11:05 霜雪千年 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 描述: 直接说题意,完全背包定义有N种物品和一个容量为V的背包,每种物品都有无限件可用。第i种物品的体积是c,价值是w。求解将哪些物品装入背包可使这些物品的体积总和不超过背包容量,且价值总和最大。本题要求是背包恰好装满背包时,求出最大价值总和是多少。如果不能恰好装满背包,输出NO。 输入: 第一行: 阅读全文
posted @ 2018-08-25 10:10 霜雪千年 阅读(488) 评论(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 霜雪千年 阅读(244) 评论(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 霜雪千年 阅读(152) 评论(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 霜雪千年 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 50 下一页