求POJ 1001 1005 1006 翻译
求POJ100110051006翻译http://poj.org/problem?id=1001http://poj.org/problem?id=1005http://...
求POJ 1001 1005 1006 翻译
http://poj.org/problem?id=1001
http://poj.org/problem?id=1005
http://poj.org/problem?id=1006
谢谢了
Sample Input和Sample Output不用翻译,,只要把题目写成汉语就行了 - - 展开
http://poj.org/problem?id=1001
http://poj.org/problem?id=1005
http://poj.org/problem?id=1006
谢谢了
Sample Input和Sample Output不用翻译,,只要把题目写成汉语就行了 - - 展开
4个回答
展开全部
POJ 1001
Exponentiation 乘方计算
Time Limit: 500MS Memory Limit: 10000K 时间限制:500ms,内存限制:10000k
Total Submissions: 80267 Accepted: 19039 提交总数:80267 接受数:19039
Description 描述
Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer systems. 涉及大规模数量级和精确度的数字的问题,其计算结果是一致的。例如,国债的计算就是很多计算机系统的必备功能。
This problem requires that you write a program to compute the exact value of Rn where R is a real number ( 0.0 < R < 99.999 ) and n is an integer such that 0 < n <= 25. 本问题需要你编制一个程序,可以计算R的n次方的精确结果。其中,R是实数,( 0.0 < R < 99.999 ),n是一个处于0-25的正整数。
Input 输入
The input will consist of a set of pairs of values for R and n. The R value will occupy columns 1 through 6, and the n value will be in columns 8 and 9.输入由R和n的组合构成,R的值在1-6列中,n的值在8,9列中。
Output 输出
The output will consist of one line for each line of input giving the exact value of R^n. Leading zeros should be suppressed in the output. Insignificant trailing zeros must not be printed. Don't print the decimal point if the result is an integer.输出在一行中,给出准确的R的n次幂,开头为0的输出应省略,无意义的末位零绝不能出现。若输出为整数,则不能输出小数点。
Hint 提示
If you don't know how to determine wheather encounted the end of input: 如果你不能确定是否到达了输入的末位,
s is a string and n is an integer s是字符串,n是整数......
POJ 1005 I Think I Need a Houseboat 我觉得我需要一个房船
Description 描述
Fred 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 miles each year, due to erosion caused by the Mississippi River. Since Fred is hoping to live in this house the rest of his life, he needs to know if his land is going to be lost to erosion.
Fred Mapper正在考虑在路易斯安那州购置一些地皮来盖房子。在投资过程中,他意识到由于密西西比河的侵蚀,路易斯安那州每年要消失50平方英里。当然他希望自己的房子能撑过自己的余生,他需要知道自己的地皮会不会被密西西比河吞掉。
After doing more research, Fred has learned that the land that is being lost forms a semicircle. This semicircle is part of a circle centered at (0,0), with the line that bisects the circle being the X axis. Locations below the X axis are in the water. The semicircle has an area of 0 at the beginning of year 1. (Semicircle illustrated in the Figure.) 经过更细致的研究,他发现正在被侵蚀的土地形成了一个半圆形。而这个半圆是一个圆心为(0,0)的圆的上半部,X轴下方是水。第一年的时候,半圆的面积为0.(如下图所示)
Input 输入
The first line of input will be a positive integer indicating how many data sets will be included (N). Each of the next N lines will contain the X and Y Cartesian coordinates of the land Fred is considering. These will be floating point numbers measured in miles. The Y coordinate will be non-negative. (0,0) will not be given. 第一行因为正整数,说明有多少输入数值。输入数值应包括fred考虑的地皮的笛卡尔坐标,坐标应以浮点数表示,Y坐标不应为负数,原点不考虑。
Output输出
For each data set, a single line of output should appear. This line should take the form of: “Property N: This property will begin eroding in year Z.” Where N is the data set (counting from 1), and Z is the first year (start from 1) this property will be within the semicircle AT THE END OF YEAR Z. Z must be an integer. After the last data set, this should print out “END OF OUTPUT.”
对于每个数据集合的输出应包含一行文字,形式为“Property N: This property will begin eroding in year Z.”,N是由数据集合得出的结果,Z是从第一年开始需要多少年,该房产会在Z年的年底被半圆纳入。最后应打印出“END OF OUTPUT.”
Hint 提示
1.No property will appear exactly on the semicircle boundary: it will either be inside or outside. 房产的地址不能出现在半圆的边界上,要不就是在内,要不就在外。
2.This problem will be judged automatically. Your answer must match exactly, including the capitalization, punctuation, and white-space. This includes the periods at the ends of the lines. 该问题将被自动评判,所以你的回答,无论是数字,标点,空格都必须准确无误。包括最后的句号。
3.All locations are given in miles. 所有的位置都以英里为单位。
Biorhythms生物钟
Description描述
Some people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the physical, emotional, and intellectual cycles, and they have periods of lengths 23, 28, and 33 days, respectively. There is one peak in each period of a cycle. At the peak of a cycle, a person performs at his or her best in the corresponding field (physical, emotional or mental). For example, if it is the mental curve, thought processes will be sharper and concentration will be easier. 有人认为,一个人存在三种不同的生物钟:生理,心理,智力三种周期,循环时间为23,38,33天。每个周期都有其最佳时刻。在最佳时刻时,人将在相应的领域发挥最好。例如,在其智力最佳时刻时,思考将更快,并可以更容易的集中记忆力。
Since the three cycles have different periods, the peaks of the three cycles generally occur at different times. We would like to determine when a triple peak occurs (the peaks of all three cycles occur in the same day) for any person. For each cycle, you will be given the number of days from the beginning of the current year at which one of its peaks (not necessarily the first) occurs. You will also be given a date expressed as the number of days from the beginning of the current year. You task is to determine the number of days from the given date to the next triple peak. The given date is not counted. For example, if the given date is 10 and the next triple peak occurs on day 12, the answer is 2, not 3. If a triple peak occurs on the given date, you should give the number of days to the next occurrence of a triple peak. 由于周期不同,每个周期的最佳时刻通常不同。我们希望确定一个人的三重最佳时间,即三个最佳时刻重合的那一天。你将得到4个数值,前三个是相对的三个周期在一年开始后出现的时间(不一定是第一个),第四个在这一年的一个给定时间。是你的任务算出是从给定日期开始,需要多少天才出现下一个三重最佳时间。给定日期不算入内。例如,给出的日期是10,下一个三重最佳时间是12,那么答案是2,并不是3.如果给出的日期就是一个三重最佳时间,你需要给出下一个三重最佳时间。
Input
You will be given a number of cases. The input for each case consists of one line of four integers p, e, i, and d. The values p, e, and i are the number of days from the beginning of the current year at which the physical, emotional, and intellectual cycles peak, respectively. The value d is the given date and may be smaller than any of p, e, or i. All values are non-negative and at most 365, and you may assume that a triple peak will occur within 21252 days of the given date. The end of input is indicated by a line in which p = e = i = d = -1. 你将得到一系列的数字,每组包括四个正整数,其中p,e,i表示从一年开始后三个周期的某个最佳出现时间。d是给定日期,可能小于p,e,i. 所有都为正整数,最大为365,你可以认为三重最佳时间将在21252天中出现。输入的结尾标志:p = e = i = d = -1。
Output 输出
For each test case, print the case number followed by a message indicating the number of days to the next triple peak, in the form: 每个给出的数值将按下列方式输出。
Case 1: the next triple peak occurs in 1234 days.
Use the plural form ``days'' even if the answer is 1. 即使答案为1也要使用day的复数形式days。
Exponentiation 乘方计算
Time Limit: 500MS Memory Limit: 10000K 时间限制:500ms,内存限制:10000k
Total Submissions: 80267 Accepted: 19039 提交总数:80267 接受数:19039
Description 描述
Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer systems. 涉及大规模数量级和精确度的数字的问题,其计算结果是一致的。例如,国债的计算就是很多计算机系统的必备功能。
This problem requires that you write a program to compute the exact value of Rn where R is a real number ( 0.0 < R < 99.999 ) and n is an integer such that 0 < n <= 25. 本问题需要你编制一个程序,可以计算R的n次方的精确结果。其中,R是实数,( 0.0 < R < 99.999 ),n是一个处于0-25的正整数。
Input 输入
The input will consist of a set of pairs of values for R and n. The R value will occupy columns 1 through 6, and the n value will be in columns 8 and 9.输入由R和n的组合构成,R的值在1-6列中,n的值在8,9列中。
Output 输出
The output will consist of one line for each line of input giving the exact value of R^n. Leading zeros should be suppressed in the output. Insignificant trailing zeros must not be printed. Don't print the decimal point if the result is an integer.输出在一行中,给出准确的R的n次幂,开头为0的输出应省略,无意义的末位零绝不能出现。若输出为整数,则不能输出小数点。
Hint 提示
If you don't know how to determine wheather encounted the end of input: 如果你不能确定是否到达了输入的末位,
s is a string and n is an integer s是字符串,n是整数......
POJ 1005 I Think I Need a Houseboat 我觉得我需要一个房船
Description 描述
Fred 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 miles each year, due to erosion caused by the Mississippi River. Since Fred is hoping to live in this house the rest of his life, he needs to know if his land is going to be lost to erosion.
Fred Mapper正在考虑在路易斯安那州购置一些地皮来盖房子。在投资过程中,他意识到由于密西西比河的侵蚀,路易斯安那州每年要消失50平方英里。当然他希望自己的房子能撑过自己的余生,他需要知道自己的地皮会不会被密西西比河吞掉。
After doing more research, Fred has learned that the land that is being lost forms a semicircle. This semicircle is part of a circle centered at (0,0), with the line that bisects the circle being the X axis. Locations below the X axis are in the water. The semicircle has an area of 0 at the beginning of year 1. (Semicircle illustrated in the Figure.) 经过更细致的研究,他发现正在被侵蚀的土地形成了一个半圆形。而这个半圆是一个圆心为(0,0)的圆的上半部,X轴下方是水。第一年的时候,半圆的面积为0.(如下图所示)
Input 输入
The first line of input will be a positive integer indicating how many data sets will be included (N). Each of the next N lines will contain the X and Y Cartesian coordinates of the land Fred is considering. These will be floating point numbers measured in miles. The Y coordinate will be non-negative. (0,0) will not be given. 第一行因为正整数,说明有多少输入数值。输入数值应包括fred考虑的地皮的笛卡尔坐标,坐标应以浮点数表示,Y坐标不应为负数,原点不考虑。
Output输出
For each data set, a single line of output should appear. This line should take the form of: “Property N: This property will begin eroding in year Z.” Where N is the data set (counting from 1), and Z is the first year (start from 1) this property will be within the semicircle AT THE END OF YEAR Z. Z must be an integer. After the last data set, this should print out “END OF OUTPUT.”
对于每个数据集合的输出应包含一行文字,形式为“Property N: This property will begin eroding in year Z.”,N是由数据集合得出的结果,Z是从第一年开始需要多少年,该房产会在Z年的年底被半圆纳入。最后应打印出“END OF OUTPUT.”
Hint 提示
1.No property will appear exactly on the semicircle boundary: it will either be inside or outside. 房产的地址不能出现在半圆的边界上,要不就是在内,要不就在外。
2.This problem will be judged automatically. Your answer must match exactly, including the capitalization, punctuation, and white-space. This includes the periods at the ends of the lines. 该问题将被自动评判,所以你的回答,无论是数字,标点,空格都必须准确无误。包括最后的句号。
3.All locations are given in miles. 所有的位置都以英里为单位。
Biorhythms生物钟
Description描述
Some people believe that there are three cycles in a person's life that start the day he or she is born. These three cycles are the physical, emotional, and intellectual cycles, and they have periods of lengths 23, 28, and 33 days, respectively. There is one peak in each period of a cycle. At the peak of a cycle, a person performs at his or her best in the corresponding field (physical, emotional or mental). For example, if it is the mental curve, thought processes will be sharper and concentration will be easier. 有人认为,一个人存在三种不同的生物钟:生理,心理,智力三种周期,循环时间为23,38,33天。每个周期都有其最佳时刻。在最佳时刻时,人将在相应的领域发挥最好。例如,在其智力最佳时刻时,思考将更快,并可以更容易的集中记忆力。
Since the three cycles have different periods, the peaks of the three cycles generally occur at different times. We would like to determine when a triple peak occurs (the peaks of all three cycles occur in the same day) for any person. For each cycle, you will be given the number of days from the beginning of the current year at which one of its peaks (not necessarily the first) occurs. You will also be given a date expressed as the number of days from the beginning of the current year. You task is to determine the number of days from the given date to the next triple peak. The given date is not counted. For example, if the given date is 10 and the next triple peak occurs on day 12, the answer is 2, not 3. If a triple peak occurs on the given date, you should give the number of days to the next occurrence of a triple peak. 由于周期不同,每个周期的最佳时刻通常不同。我们希望确定一个人的三重最佳时间,即三个最佳时刻重合的那一天。你将得到4个数值,前三个是相对的三个周期在一年开始后出现的时间(不一定是第一个),第四个在这一年的一个给定时间。是你的任务算出是从给定日期开始,需要多少天才出现下一个三重最佳时间。给定日期不算入内。例如,给出的日期是10,下一个三重最佳时间是12,那么答案是2,并不是3.如果给出的日期就是一个三重最佳时间,你需要给出下一个三重最佳时间。
Input
You will be given a number of cases. The input for each case consists of one line of four integers p, e, i, and d. The values p, e, and i are the number of days from the beginning of the current year at which the physical, emotional, and intellectual cycles peak, respectively. The value d is the given date and may be smaller than any of p, e, or i. All values are non-negative and at most 365, and you may assume that a triple peak will occur within 21252 days of the given date. The end of input is indicated by a line in which p = e = i = d = -1. 你将得到一系列的数字,每组包括四个正整数,其中p,e,i表示从一年开始后三个周期的某个最佳出现时间。d是给定日期,可能小于p,e,i. 所有都为正整数,最大为365,你可以认为三重最佳时间将在21252天中出现。输入的结尾标志:p = e = i = d = -1。
Output 输出
For each test case, print the case number followed by a message indicating the number of days to the next triple peak, in the form: 每个给出的数值将按下列方式输出。
Case 1: the next triple peak occurs in 1234 days.
Use the plural form ``days'' even if the answer is 1. 即使答案为1也要使用day的复数形式days。
展开全部
1006 POJ 1001 1005年
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
#include
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询