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

这题太简单了,一次就AC了

Posted by bluegenelove at 2007-08-02 13:22:11 on Problem 1005
#include <stdio.h>
#include <math.h>

int main ()
{
	int n,i,c;
	float a,b;

	while (scanf ("%d",&n)!=EOF)
	{
		for (i=1;i<=n;i++)
		{
			scanf ("%f%f",&a,&b);
			c=(int)(acos (-1)*(a*a+b*b)/100.0);
			printf ("Property %d: This property will begin eroding in year %d.\n",i,c+1);
		}
		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