ZOJ1149
来源:互联网 发布:sql常用查询语句 编辑:程序博客网 时间:2024/06/09 16:53
#include<stdio.h>#include<stdlib.h>#include<math.h>int main(){int n,i,*p; double x,y,distance,r; scanf("%d",&n); p = (int*)malloc(sizeof(int)*n); for(i = 0;i<n;i++) { scanf("%lf %lf",&x,&y); distance = sqrt(x*x + y*y); r = 0; p[i] = 0; while(distance>r){ p[i]++; r = sqrt(50.0*p[i]*2/3.1415); } } for(i = 0;i<n;i++) { printf("Property %d: This property will begin eroding in year %d.\n",i + 1,p[i]); } printf("END OF OUTPUT.\n");return 0;}
0 0
- ZOJ1149
- zoj1149-Dividing
- zoj1149 Dividing 动态规划
- ZOJ1149 POJ1014 HDU1059 Dividing,多重背包问题
- 背包水题 zoj3623 Poj1014&Zoj1149&Hdu1059 Hdu2844
- ZOJ1137
- 图解linux下top命令的使用
- T-primes
- Python编译时提示“NameError: name 'Popen' is not defined”及”NameError: name 'PIPE' is not defined“错误的解决
- MySQL索引详细介绍
- ZOJ1149
- hdu-oj 1412 {A} + {B}
- MapReduce 计数器简介
- 性能调优基础篇之内存中大量重复String对象
- 母函数之 Holding Bin-Laden Captive! hdoj 1085
- MySQL视图
- 常见的集成声卡芯片
- Cocos2d-x使用中遇到的问题
- hdu 1698 Just a Hook(线段树的区间更新及求和)