编程介的小学生 2017-04-09 03:07 采纳率: 20.5%
浏览 744
已采纳

Tragedy Organ

Aha is suffering from terminal illness while a fatal disease is attacking one of his organs. After modeling the organ with lesions, we believe that the organ is a circular slice. More unfortunately, the annual advent of a fatal lesion point on his organ sounds the death knell for Aha, and the fatal lesion point falls on the surface of the existing sick organ equiprobably. Every year he turn to a doctor who will preserve the maximal circular portion of the organ without the lesion point and excise the rest part during the yearly surgical operation. Once the area of the Aha's sick organ is less than 25% of a normal organ, he has to enter the grave desperately.

a case of 3 years long
Now we have measured the area of Aha's sick organ in a minimally invasive vivisection experiment. Then what's the expectation of his rest time?

Input

One line per case, indicates the area of Aha's sick organ, in percentage of the area of a normal organ.

Output

A one line per case, indicates the expectation of Aha's rest life in years. And the absolute error should be less than 10-8.

Sample Input

23.0000000001%
25.0000300000%
Sample Output

0.000000000000
1.000002399999

  • 写回答

1条回答 默认 最新

报告相同问题?

悬赏问题

  • ¥15 用hfss做微带贴片阵列天线的时候分析设置有问题
  • ¥50 我撰写的python爬虫爬不了 要爬的网址有反爬机制
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥120 计算机网络的新校区组网设计
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 海浪数据 南海地区海况数据,波浪数据
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等