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

我错哪了阿???????为啥是Presentation Error阿?

Posted by plich at 2006-10-07 12:21:47 on Problem 1005
#include<stdio.h>
int main()
{
	int N,j,i;
	float x,y;
	int t[50];

	scanf("%i",&N);
	for(j=1;j<=N;j++)
	{
		scanf("%f%f",&x,&y);
		for(i=1;;i++)
		{
			if(x*x+y*y<100*i/3.1415926)
			{
			t[j]=i;
			break;
			}
			
		}
	}
	
	//output
	for(j=1;j<=N;j++)
		printf("Property %i:This property will begin eroding in year %i.\n",j,t[j]);
	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