Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

哈哈意义

Posted by 1358034284 at 2012-12-16 16:35:25 on Problem 1005
#include<stdio.h>
main()
{
 double a,s,d,f,g;
 int z,x;
 while(~scanf("%d",&z))
 {
  for(x=1;x<=z;x++)
  {
   scanf("%lf%lf",&a,&s);
   a=a*a+s*s;
   for(d=1.0;;)
   {
    f=100*d;
    if(f>=3.14*a)break;
    d++;
   }
   printf("Property %d: This property will begin eroding in year %.0lf.\n",x,d
);
   if(x==z)printf("END OF OUTPUT.\n");
  }
 }
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator