编程介的小学生
2016-11-11 15:14
采纳率: 92.6%
浏览 1.0k
已采纳

Build a Fence 计算几何

问题描述 :

There is a wall in your backyard. It is so long that you can’t see its endpoints. You want to build a fence of length L such that the area enclosed between the wall and the fence is maximized. The fence can be of arbitrary shape, but only its two endpoints may touch the wall.
输入:

The input consists of several test cases.For every test case, there is only one integer L (1<=L<=100), indicating the length of the fence.The input ends with L=0.
输出:

The input consists of several test cases.For every test case, there is only one integer L (1<=L<=100), indicating the length of the fence.The input ends with L=0.
样例输入:

11000
样例输出:

0.161591.55

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题