随笔-65  评论-6  文章-0  trackbacks-0
 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 
posted on 2012-03-09 21:08 Leo.W 阅读(230) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理