Time Limit: 1000MS | Memory Limit: 10000K | |
Total Submissions: 84918 | Accepted: 36763 |
Description
Input
Output
Sample Input
2 1.0 1.0 25.0 0.0
Sample Output
Property 1: This property will begin eroding in year 1. Property 2: This property will begin eroding in year 20. END OF OUTPUT.
Hint
#include<stdio.h> int main(){ int n,m,j=1; scanf("%d",&n); while(n--){ float x,y,s; scanf("%f%f",&x,&y); s=3.1415926*(x*x+y*y); m=(int)s/100.0+1.0; printf("Property %d: This property will begin eroding in year %d.\n",j++,m); } printf("END OF OUTPUT.\n"); }
I Think I Need a Houseboat,布布扣,bubuko.com
原文:http://www.cnblogs.com/HRuinger/p/3728674.html