Description
You are a intrepid 2-dimensional explorer located at the northern polar reaches of a distant 2-dimensional planet. Unfortunately, you have been assigned to explore the most boring planet in the known universe (due primarily to your lack of social skills and aggressive body odor). Having a perfectly circular surface, your planet holds no surprises for a would-be explorer.
However, you have recently received a distress call from an alien ship which has crash-landed somewhere on the surface of your planet. Unfortunately, you designed your own equipment, and the only information it will give you is an angle (measured from the center of the planet) separating you from the crash site.
Using this information along with how much gasoline is available for your planet-rover (which gets a measley 5 miles per gallon), you have to determine if you can possibly get to the crash site and back without running out of fuel.
二维星球救援燃料计算问题

这是一篇关于如何在二维星球上,根据给定的角度和燃料量,判断能否到达并返回从圆心角度度量的外星飞船坠落地点的问题。输入包含星球半径、燃料量和角度,需要计算并输出是否足够到达并返回,以及剩余燃料或可行驶距离。
最低0.47元/天 解锁文章
2023

被折叠的 条评论
为什么被折叠?



