- 博客(7)
- 收藏
- 关注
原创 (POJ 3980)取模运算
取模运算Description编写一个C函数mod(int n, int m),实现取模运算%Input输入包含多行数据 每行数据是两个整数a, b (1 数据以EOF结束Output于输入的每一行输出a%bSample Input 5 3 100 2
2011-04-13 14:26:00
731
原创 (POJ 3979)分数加减法
分数加减法Description编写一个C程序,实现两个分数的加减法Input输入包含多行数据 每行数据是一个字符串,格式是"a/boc/d"。 其中a, b, c, d是一个0-9的整数。o是运算符"+"或者"-"。 数据以EOF结束 输入数据保证合法Output对于输入数据的每一行输出两个分数的运算结果。
2011-04-13 14:21:00
945
原创 (POJ 1183)反正切函数的应用
反正切函数的应用 Description反正切函数可展开成无穷级数,有如下公式 (其中0 使用反正切函数计算PI是一种常用的方法。例如,最简单的计算PI的方法: arctan(1/2)+arctan(1/3)=arctan[(1/2
2011-04-13 14:17:00
1012
原创 (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
267
原创 (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
295
原创 (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
368
原创 (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
500
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人