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

WA了 哥哥们帮小的看看吧 用C

Posted by scenix at 2008-11-27 12:20:45 on Problem 1005
#include <stdio.h>
#include <math.h>
int main()
{
	int N,a[40],i;
	float r,s,s0;
	scanf("%d",&N);\\
	for( i=0 ; i<N; i++)
	{
		float x,y;\\
		scanf("%f%f",&x,&y);
		r= sqrt(x*x+y*y);
		s=3.1415926*r*r/2;
		a[i]=(int)(s/50) + 1;
	}
	for(i=0; i<N; i++)
		printf("Property %d: This property will begin eroding in year %d.\n" ,N,a[i]);
	printf("END OF OUTPUT.\n");
	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