
POJ
文章平均质量分 75
accode
饭可七日不食,水能三日不饮,
然题不可一日不做
展开
-
(POJ 1005)I Think I Need a Houseboat
<br /> I Think I Need a Houseboat<br /><br />DescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinking by 50 square原创 2011-04-13 14:09:00 · 291 阅读 · 0 评论 -
(POJ 1007)DNA Sorting
DNA SortingDescriptionOne measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequence ``DAABEC'', this measure is 5, since D is greater than four letter原创 2011-04-13 14:14:00 · 265 阅读 · 0 评论 -
(POJ 1004)Financial Management
Financial ManagementDescriptionLarry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfolio and solve his financing problems. T原创 2011-04-13 14:02:00 · 365 阅读 · 0 评论 -
(POJ 3980)取模运算
取模运算Description编写一个C函数mod(int n, int m),实现取模运算%Input输入包含多行数据 每行数据是两个整数a, b (1 数据以EOF结束Output于输入的每一行输出a%bSample Input5 3 100 2原创 2011-04-13 14:26:00 · 727 阅读 · 0 评论 -
(POJ 1003)Hangover
HangoverDescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be perpendicular to the table.) With two cards you can make the to原创 2011-04-13 10:44:00 · 495 阅读 · 0 评论 -
(POJ 3979)分数加减法
分数加减法Description编写一个C程序,实现两个分数的加减法Input输入包含多行数据 每行数据是一个字符串,格式是"a/boc/d"。 其中a, b, c, d是一个0-9的整数。o是运算符"+"或者"-"。 数据以EOF结束 输入数据保证合法Output对于输入数据的每一行输出两个分数的运算结果。原创 2011-04-13 14:21:00 · 943 阅读 · 0 评论