程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程解疑 >> it-Build a Fence 計算幾何

it-Build a Fence 計算幾何

編輯:編程解疑
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

最佳回答:


http://www.th7.cn/Program/c/201603/781541.shtml

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved