百炼1005

时间:2022-07-24
本文章向大家介绍百炼1005,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。
#include<bits/stdc++.h>
#define pi 3.1415926
using namespace std;
int main(){
	int n;
	cin>>n;
	double x,y;
	double d,r;
	int flag=0;
	while(n--){
		cin>>x>>y;
		d = sqrt(x*x+y*y);
		for(int j=1;;j++){
			r = sqrt(100.0*j/pi);
			if(r>d) {flag++;printf("Property %d: This property will begin eroding in year %d.n",flag,j);break;}
		}
	}
	printf("END OF OUTPUT.");
	return 0;
}