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

I Think I Need a Houseboat

Posted by whus200532550008 at 2006-12-23 16:10:39
#include<stdio.h>
#include<math.h>
#define PI acos(-1)
int main()
{
   int n,k,i;
   double x,y;
   scanf("%d",&n);
   for (i=1;i<=n;i++)
  {
    scanf("%lf%lf",&x,&y);
    k=(int) ceil(PI*(x*x+y*y)/2/50);
    printf("Property %d: This property will begin eroding in year %d.\n",i,k);
  }
  printf("END OF OUTPUT.");
  return(0);
  }

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