ural 1550 Dean's Pyramid 3计算几何
来源:互联网 发布:掌上电力用电数据同步 编辑:程序博客网 时间:2024/05/29 08:50
http://acm.timus.ru/problem.aspx?space=1&num=1550
very easy!
#include <cstdio>#include <cmath>double h,w,x,y,r;int main (){double pi = acos(-1.0);//freopen("in.txt","r",stdin);scanf("%lf%lf%lf%lf%lf",&h,&w,&x,&y,&r);double area=w*w*h/3;x=fabs(x),y=fabs(y);double min=x>y?x:y;double teh=h*(1-(2*min/w));double temp=(pi*teh*r*r);printf("%.5f\n",area-temp);return 0;}
0 0
- ural 1550 Dean's Pyramid 3计算几何
- Ural 1550 Dean's Pyramid 3
- 计算几何 ural 1754. Explosion in a Pyramid
- ural 1207 计算几何
- 计算几何 ural 1753
- 计算几何 ural 1874
- URAL 1436. Billboard(计算几何)
- 计算几何 ural 1793Tray 2
- Ural-1020. Rope(简单计算几何)
- URAL 2026 C - Dean and Schedule
- ural 1489. Points on a Parallelepiped 计算几何
- 【解题报告】 Ural 1348 简单的计算几何
- Ural-1084. Goat in the Garden(计算几何)
- timus 1874. Football Goal URAL 解题报告 计算几何
- POJ 2606 / URAL 1502 Rabbit hunt (计算几何)
- URAL 1750 Pakhom and the Gully 计算几何+floyd
- Ural 1207. Median on the Plane(计算几何)
- URAL 1849|Rabbit Hunt 2|计算几何|二分|Set
- ACdreamoj1056(带权并查集)
- poj1942Paths on a Grid
- adb uninstall failure
- POJ - 2366 Sacrament of the sum
- 修改fstab配置项, 自动挂载分区
- ural 1550 Dean's Pyramid 3计算几何
- 表格排序
- 转:纽约时报揭密苹果公司内部培训项目=
- POJ3189 最大流
- ACM集训--HDU 1166
- cmd常用命令
- block 和 属性
- ubuntu下解决longene-qq 退出之后再登录出现登录失败的问题
- easyui问题小结