2012年6月8日
摘要: 题目描述:Preface NumberingA certain book's prefaces are numbered in upper case Roman numerals. Traditional Roman numeral values use a single letter to represent a certain subset of decimal numbers. Here is the standard set: I 1 L 50 M 1000 V 5 C 100 X 10 D 5... 阅读全文
posted @ 2012-06-08 23:51 geeker 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 描述农民JOHN以拥有世界上最健康的奶牛为傲。他知道每种饲料中所包含的牛所需的最低的维他命量是多少。请你帮助农夫喂养他的牛,以保持它们的健康,使喂给牛的饲料的种数最少。给出牛所需的最低的维他命量,输出喂给牛需要哪些种类的饲料,且所需的饲料剂量最少。维他命量以整数表示,每种饲料最多只能对牛使用一次,数据保证存在解。格式PROGRAM NAME: holsteinINPUT FORMAT:(file holstein.in)第1行:一个整数V(1<=V<=25),表示需要的维他命的种类数。第2行:V个整数(1<=每个数<=1000),表示牛每天需要的每种维他命的最小量。第3 阅读全文
posted @ 2012-06-08 11:05 geeker 阅读(401) 评论(0) 推荐(0) 编辑