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:这个程序挺简单的,为什么过不了呢?

Posted by peixuangeng at 2010-09-30 17:05:00 on Problem 1005
In Reply To:这个程序挺简单的,为什么过不了呢? Posted by:20091845 at 2010-07-21 10:05:36
> #include<stdio.h>
> #include<math.h>
> #define PAI 3.1415
> main()
> {
> 	float a,b,s;int n,i=1,x;
> 	scanf("%d",&n);
> 	while(n>0)
> 	{
> 	  scanf("%f %f",&a,&b);
> 	  s=PAI*(a*a+b*b)/2.0;
> 	  x=s/50;
> printf("Property %d: This property will begin eroding in year d\n",i,x+1);
> 	  n--;
> 	  i++;
> 	}
> 	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