hdu 1065(I Think I Need a Houseboat)

hdu 1065(I Think I Need a Houseboat)
 1  /*
 2  Author:    Leo.W
 3  Descriptipn:    
 4  How to Do:    
 5     */
 6 #include <stdio.h>
 7  #define PI 3.1415926
 8  int main(){
 9      int t,i,no=0;
10     scanf("%d",&t);
11      while (t--){
12          double x,y;
13         scanf("%lf%lf",&x,&y);
14         i= int(PI*(x*x+y*y)/100+1);
15         printf("Property %d: This property will begin eroding in year %d.\n",++no,i);
16     }
17     printf("END OF OUTPUT.\n");
18      return 0;
19 } 
20 

你可能感兴趣的:(hdu 1065(I Think I Need a Houseboat))