POJ1005

注意是每年向外扩张 50 square miles

#include <stdio.h>
#include <math.h>
const float PI = 3.141592;

int main() {
	int N,count = 0;
	float x,y,year;
	scanf("%d", &N);
	while (N--) {
		count++;
		scanf("%f%f", &x, &y);
		year = 1+(x*x+y*y)*PI/100;
		printf("Property %d: This property will begin eroding in year %d.\n", count, (int)year);
	}
	printf("END OF OUTPUT.");
	return 0;
}

猜你喜欢

转载自blog.csdn.net/weixin_40571331/article/details/83239343
今日推荐