创作于2020年8月2日 @ 下午11:00

#include<cmath>
#include<cstdio>
#include<string>
#include<cstring>
#include<iostream>
#include<algorithm>
#define PI 3.141593
using namespace std;
int n;
double s,x,y;
int main(){
	scanf("%d",&n);
	for(int i=1;i<=n;i++){
		scanf("%lf%lf",&x,&y);
		s=(x*x+y*y)*PI/2;
		int ans=s/50+1;
		printf("Property %d: This property will begin eroding in year %d.\n",i,ans);
	}
	puts("END OF OUTPUT.");
	return 0;
}

 

0 0 votes
文章评分
0 评论
Inline Feedbacks
View all comments