Create 1049.cpp

pull/1/head
Kirigaya Kazuto 2016-04-10 21:24:50 +08:00
parent 6b89ca4332
commit dfc8d86b5f
1 changed files with 22 additions and 0 deletions

22
ZOJ/1049.cpp Normal file
View File

@ -0,0 +1,22 @@
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
using namespace std;
int main()
{
int t;
double a,b;
scanf("%d",&t);
for(int i=0;i<t;i++)
{
scanf("%lf %lf",&a,&b);
double R=sqrt(a*a+b*b);
double S=3.14159*R*R/2;
int year=S/50+1;
printf("Property %d: This property will begin eroding in year %d.\n",i+1,year);
}
printf("END OF OUTPUT.\n");
return 0;
}