- 1、本文档共3页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
通过率:41% 难度:简单
I Think I Need a Houseboat
Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 53024 Accepted: 21859
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.
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.)
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.
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
(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.”
Sample Input
2
1.0 1.0
25.0 0.0
Sample Output
Property 1: This property will begin eroding in year 1. Property 2: This property will begin eroding in year 20. END OF OUTPUT.
翻译:佛瑞德考虑要在美国路易斯安那州上购买一些地来修建他的房子。在调查这个陆地的过程中,他发现路易斯安那州每年都因密西西比河的侵蚀而萎缩 50 平方英里。自从佛瑞德打算要在这里度过后半生起,他就需要知道他的地是否会被侵蚀掉。
做了一些调查后,佛瑞德发现这里的陆地被以半圆的形式被侵蚀。这个半圆是一个圆的一部
分,圆心为(0,0),被横坐标轴而等分,横坐标轴x 轴下面的部分在水里。这个半圆在第一年的时候的面积是 0。
第一行输入的是数据集的数目(N),
您可能关注的文档
- PEP小学英语五年级下册单词默写.docx
- PEP小学英语五年级下册第一单元测试卷.docx
- PEP小学英语五年级下册教学片段设计.docx
- PEP小学英语五年级下册句子复习(汉译英).docx
- PEP小学英语五年级下二单元复习课教学设计教案资料.docx
- pep小学英语音标练习.docx
- PEP小学英语语音资料.docx
- pep英语四年级下册第6单元教学设计新部编版.docx
- Permanent Magnets Design and Magnetic Field Analysis of Multidisc Coreless Permanent Magnet Synchro分析和总结分析和总结.docx
- PET核心词汇21天分析和总结.docx
最近下载
- 2024年电信智慧家庭工程师(三级)认证考试题库-中(多选题部分).docx
- 11《山地回忆》第一课时 +公开课一等奖创新教案+导学案.docx VIP
- 0i-TF PLUS车床操作说明书.pdf
- 2024年电信智慧家庭工程师(三级)认证考试题库-下(判断题部分).docx
- 2024年电信智慧家庭工程师(三级)认证考试题库-上(单选题部分).docx
- 重生之我在古代当皇帝课件高二上学期自律主题班会.pptx
- 2025第三届全国技能大赛海南省选拔赛-数字孪生应用技术(国赛精选)项目技术文件.pdf VIP
- 质量管理六大工具-PPAP.pptx
- 苯并噻唑衍生物及作为荧光染料上的应用.pdf VIP
- 新编剑桥商务英语(高级)学生用书(第三版修订版)达姆特教材习题答案笔记及workbook答案.pdf
文档评论(0)