poj 3737 UmBasketella
来源:互联网 发布:linux 恢复挂起 编辑:程序博客网 时间:2024/05/18 19:39
Description
In recent days, people always design new things with multifunction. For instance, you can not only use cell phone to call your friends, but you can also use your cell phone take photographs or listen to MP3. Another example is the combination between watch and television. These kinds of multifunction items can always improve people's daily life and are extremely favored by users.
The company Mr. Umbrella invented a new kind umbrella "UmBasketella" for people in Rainbow city recently and its idea also comes from such multifunction--the combination of umbrella and daily necessities. This kind of umbrella can be used as a basket and you can put something you want to carry in it. Since Rainbow city rains very often, such innovative usage is successful and "UmBasketella" sells very well. Unfortunately, the original "UmBasketella" do not have an automatic volume control technology so that it is easily damaged when users try to put too many things in it. To solve this problem, you are needed to design an "UmBasketella" with maximum volume. Suppose that "UmBasketella" is a cone-shape container and its surface area (include the bottom) is known, could you find the maximum value of the cone?
Input
Input contains several test cases. Eash case contains only one real number S, representing the surface area of the cone. It is guaranteed that 1≤S≤10000.
Output
For each test case, output should contain three lines.
The first line should have a real number representing the maximum volume of the cone.
Output the height of the cone on the second line and the radius of the bottom area of the cone on the third line.
All real numbers should rounded to 0.01.
Sample Input
30
Sample Output
10.934.371.55
Source
简单的数学题应用,不用二分三分的
#include <stdio.h>#include<math.h>double pi=acos(-1.0);int main(){ double s; while(scanf("%lf",&s)!=EOF) { printf("%.2f\n",sqrt(s*s*s/(72*pi)));//直接推导出计算式AC掉 printf("%.2f\n",sqrt(2*s/pi)); printf("%.2f\n",sqrt(s/(4*pi))); } return 0;}
- POJ 3737 UmBasketella 三分
- poj 3737 UmBasketella
- POJ 3737 UmBasketella
- poj 3737 UmBasketella 三分
- POJ 3737 UmBasketella.
- POJ 3737 UmBasketella
- POJ 3737 UmBasketella
- [POJ 3737]UmBasketella(三分)
- day5 POJ 3737 UmBasketella
- poj-3737(UmBasketella)
- POJ 3737 UmBasketella
- [POJ 3737][三分]UmBasketella
- POJ 3737 UmBasketella(三分)
- poj 3737 UmBasketella(三分+求导)
- POJ 3737 UmBasketella (数学)
- POJ 3737 UmBasketella(三分)
- POJ - 3737 - UmBasketella(三分)
- POJ 3737 UmBasketella 三分搜索
- Qt中信号槽的概念
- 接口
- matlab7.0安装使用出错解决方案集锦
- 指派问题、回溯法
- Session/Cookie
- poj 3737 UmBasketella
- yii gii的使用
- 001 走上移动开发之安卓项目实战(百度地图:建立百度地图开发环境)
- 租用游艇问题
- struts2+functinchart+json+ajax
- 图片和视频的相互转换——Matlab
- jQuery 2.0发布不再支持IE 6/7/8浏览器
- 周六早8点回龙观登山大地-黑坨山-九眼楼-庄户赏花穿越一日
- 表达式的优先级/结合性/求值顺序