翻译;;;

Area in Triangle | JXNUOJ

Area in Triangle

1000ms 32768K

描述:

Given a triangle field and a rope of a certain length (Figure-1), you are required to use the rope to enclose a region within the field and make the region as large as possible.

 

输入:

The input has several sets of test data. Each set is one line containing four numbers separated by a space. The first three indicate the lengths of the edges of the triangle field, and the fourth is the length of the rope. Each of the four numbers have exactly four digits after the decimal point. The line containing four zeros ends the input and should not be processed. You can assume each of the edges are not longer than 100.0000 and the length of the rope is not longer than the perimeter of the field.
 

输出:

Output one line for each case in the following format:

Case i: X

Where i is the case number, and X is the largest area which is rounded to two digits after the decimal point.

 

三角形的区域
描述:
给一个三角形的场地和一根一定长度的绳子(数字-1),你被要求用这根绳子去围住一个区域并且使这个区域尽可能大。
输入:
输入有一些组的数据。每组一行包括四个数字,中间用空格分开。前三个数字表示三角形场地的三边长,并且第四个数字有准确的四位小数。
一行由四个0的数据用来结束输入并且不应该被处理。你可以假设每边都没有100.0000长并且绳子的长度没有土地的周长长。
输出:
对于每组数据按以下格式输出一行:
Case i: X
在这里i是组数的编号,并且X是最大的面积,它四舍五入小数点后两位。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值