POJ 1005
来源:互联网 发布:禁止用户安装软件 编辑:程序博客网 时间:2024/06/05 23:06
//计算出他的土地会因为河流的侵袭而丧失
//POJ 1005
#include<stdio.h>
#include<math.h>
int num_props;
float x, y;
int i;
double calce;
int years;
int main()
{
scanf("%d",&num_props);
for(i=1;i<=num_props;++i)
{
scanf("%f %f",&x,&y); //x,y坐标与(0,0)构成半圆的面积
calce=(x*x+y*y)*M_PI/2/50;
years=ceil(calce);
printf("Preperty %d:This property will begin eroding in years %d.\n",i,years);
}
printf("END OF OUTPUT.\n");
return 0;
}
//POJ 1005
#include<stdio.h>
#include<math.h>
int num_props;
float x, y;
int i;
double calce;
int years;
int main()
{
scanf("%d",&num_props);
for(i=1;i<=num_props;++i)
{
scanf("%f %f",&x,&y); //x,y坐标与(0,0)构成半圆的面积
calce=(x*x+y*y)*M_PI/2/50;
years=ceil(calce);
printf("Preperty %d:This property will begin eroding in years %d.\n",i,years);
}
printf("END OF OUTPUT.\n");
return 0;
}
- POJ 1005
- POJ-1005
- POJ 1005
- poj 1005
- POJ 1005
- POJ 1005
- POJ 1005
- POJ-1005
- POJ 1005
- poj 1005
- POJ 1005
- poj 1005
- poj 1005
- POJ 1005
- poj 1005
- poj 1005
- poj 1005
- POJ-1005
- 数据库性能优化详解
- C++和C语言的一点区别
- I2C总线原理
- C#多线程学习(六) 互斥对象
- 使用C#和Excel进行报表开发(三)-生成统计图(Chart)2
- POJ 1005
- arm linux驱动笔记
- Unity3D Shader官方教程翻译(九)----Shader语法:Pass的雾化处理
- 数据结构实验2---表达式求值(“栈”实现)
- 使用C#和Excel进行报表开发(三)-生成统计图(Chart)3
- EXTJS初级UI设计进阶教程(2)
- <zz>信息检索中Recall, Precision等参数的理解
- 使用C#和Excel进行报表开发(三)-生成统计图(Chart)4
- 使用C#和Excel进行报表开发(三)-生成统计图(Chart)5