POJ 1005(累加)
来源:互联网 发布:单片机isd1820语音模块 编辑:程序博客网 时间:2024/05/22 00:09
/* * POJ_1005.cpp * * Created on: 2013年10月14日 * Author: Administrator */#include <iostream>#include <cstdio>#include <cmath>using namespace std;const double PI = 3.141592653;int main(){int t;scanf("%d",&t);int counter = 1;while(t--){double x,y;scanf("%lf%lf",&x,&y);double r = sqrt(x*x + y*y);double target = PI*r*r/2;double sum = 0;int years = 0;while(sum < target){sum+=50;years++;}printf("Property %d: This property will begin eroding in year %d.\n",counter++,years);}printf("END OF OUTPUT.\n");return 0 ;}
- POJ 1005(累加)
- POJ 1003(累加)
- POJ 1004(累加)
- poj 3233 矩阵乘法累加
- poj 1503 高精度加法,累加
- 累加
- 累加
- 累加
- (高精度运算4.7.23)POJ 1503 Integer Inquiry(大数累加)
- 1005 计算字符串累加和并输出
- POJ 3086 Triangular Sums(我的水题之路——三角数累加)
- (简单模拟2.1.1)POJ 2017 Speed Limit(跨项累加sumLen += (t2-t1)*v )
- (高精度运算4.7.31)POJ 2413 How many Fibs?(大数累加)
- (Relax ST1.8)POJ 1517 u Calculate e(求各阶乘累加之和)
- poj 2413 How many Fibs? 大数累加模板+字符串模拟大数比较大小
- poj 3468 A Simple Problem with Integers(线段树区间累加)
- 整数累加
- 分数累加
- poj 1050 To the Max
- 整合ec和ucenter
- 第7周项目1-求圆柱表面积与求并联阻值
- pthread_mutex_t的使用
- (C++)分支限界法求解背包问题
- POJ 1005(累加)
- 理解java回调机制
- poj 1904 King's Quest(强连通分量)
- Java里多个Map的性能比较(TreeMap、HashMap、ConcurrentSkipListMap)
- android下的单元测试:
- c++多线程编程(3)
- MongoDB 学习笔记(六):备份与用户管理
- 黑马程序员-------踏踏实实C#面向对象(二)
- android下SD卡读写相关: 计算手机可用空间