| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
代码!#include <stdio.h>
#include <math.h>
int main()
{
double PI=3.1415926,a,b,total;
int n;
__int64 year;
scanf("%d",&n);
for(int i=1;i<=n;++i)
{
scanf("%lf %lf",&a,&b);
total=PI*(a*a+b*b)/2;
total/=50;
total+=1;
year=total+1e-6;
printf("Property %d: This property will begin eroding in year %I64d.\n",i,year);
}
printf("END OF OUTPUT.\n");
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator