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

Re:help!

Posted by bogdan2412 at 2005-01-11 02:39:44 on Problem 1005
In Reply To:help! Posted by:90301118 at 2003-11-19 09:02:42
3.14159265358 instead of 3.1415927. I had the same problem and this worked for me.
> #include "stdio.h"
> #include "math.h"
>  void main()
> { float x,y;
>   int year,N,n;
>  scanf("%d",&N);
>  for(n=1;n<=N;n++)
>  {scanf("%f%f",&x,&y);
>    year=(int)ceil((x*x+y*y)*3.1415927/2/50);
>  printf("Property %d: This property will begin enroding in year %d.\n",n,year);
>  }
>  printf("END OF OUTPUT.\n");
>  }
> 
> 
> why cant i pass?

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