惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
小众软件
小众软件
腾讯CDC
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
Y
Y Combinator Blog
Engineering at Meta
Engineering at Meta
美团技术团队
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
罗磊的独立博客
aimingoo的专栏
aimingoo的专栏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
G
Google Developers Blog
C
Check Point Blog
大猫的无限游戏
大猫的无限游戏
Recent Announcements
Recent Announcements

博客园 - Jeff

4个月 C++ 有限状态机 POJ1019 POJ1035 POJ1007 ONLINE_JUDGE Linux shell定时器 怪异的grep结果 URL2FILE C primer笔记 Vxworks增加system call C语言常用宏定义技巧 分苹果 Socket 为什么选择SMP而不是AMP RTP memory in Vxworks Windriver的项目类型 RTP affinity Symmetric multiprocessing (SMP)
POJ1005
Jeff · 2012-01-05 · via 博客园 - Jeff

2012-01-05 10:01  Jeff  阅读(587)  评论()    收藏  举报

#include "stdio.h"
#include "math.h"
int main(void) {
    int num;
    float x_value=0.0;
    float y_value=0.0;
    int a =1;
    int result;
    float length;
    #ifndef ONLINE_JUDGE
    freopen("in.txt","r",stdin);
    #else
    #endif

    scanf("%d",&num);
    
    while(num>0){
         scanf("%G%G",&x_value,&y_value);
         
         length = sqrt(x_value*x_value + y_value*y_value);
         result =(3.1415926*length*length/100)+1;
        
printf("Property %d: This property will begin eroding in year %d.n", a,result);
         num--;
         a++;
    }
     printf("END OF OUTPUT.");
    
    #ifndef ONLINE_JUDGE
    fclose(stdin);
    #else
    #endif
    return 0;
}