zoj-1047-I Think I Need a Houseboat
2013-07-29 09:12
246 查看
#include<stdio.h> #include<string.h> #include<algorithm> #include<math.h> #define PI 3.1415926 using namespace std; int main() { int n,t; double x,y,k; scanf("%d",&n); for(int i=1;i<=n;i++) { scanf("%lf%lf",&x,&y); k=(PI*(x*x+y*y))/100.+0.499; printf("Property %d: This property will begin eroding in year %.0lf.\n",i,k); } printf("END OF OUTPUT.\n"); return 0; }
思路很简单 计算给定点到原点的距离,,算面积 主要是精度的控制
相关文章推荐
- ZOJ 1049 I Think I Need a Houseboat
- ZOJ Problem Set - 1049||I Think I Need a Houseboat
- 【大水题】ZOJ 1049 I Think I need a Houseboat
- ZOJ Problem Set - 1049 I Think I Need a Houseboat
- UVALive2363 POJ1005 HDU1065 ZOJ1049 I Think I Need a Houseboat【数学计算+水题】
- ZOJ 1049 (I Think I Need a Houseboat)
- ZOJ 1049 I Think I Need a Houseboat
- ZOJ1049-I Think I Need a Houseboat
- [Icpc] zoj 1048 / 1049 I Think I Need a Houseboat (v w)
- ZOJ 1049 I Think I Need a Houseboat
- [Icpc] zoj 1048 / 1049 I Think I Need a Houseboat (v w)
- ZOJ 1049 I Think I Need a Houseboat
- ZOJ 1049 I Think I Need a Houseboat
- ZOJ--1049:I Think I Need a Houseboat
- I Think I Need a Houseboat ZOJ(几何计算)
- ZOJ Problem Set - 1049 I Think I Need a Houseboat
- zoj-1949-I Think I Need a Houseboat
- ZOJ 1049 I Think I Need a Houseboat
- HDU 1065 || ZOJ 1049 I Think I Need a Houseboat
- ZOJ_1049_I Think I Need a Houseboat