mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
23 lines
449 B
C++
23 lines
449 B
C++
|
#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;
|
||
|
}
|