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 yeyin at 2003-11-30 13:51:00 on Problem 1005
#include <iostream.h>
int main()
{
  float pi=3.14159;
  int r=0;

	long double a=0;
	long double r2=0;

	long double locatex[100];
	long double locatey[100];
	cin>>r;
	int y=0;
	for (y=0;y<r;y++)
	{
	cin>>locatex[y]>>locatey[y];
	}
	for (y=0;y<r;y++)
	{
		r2=(locatex[y]*locatex[y]+locatey[y]*locatey[y]);
	
		while (2*(50*a)<pi*r2)

		{
		a=a+1;
	
		}
	
		cout<<"Property"<<y+1<<":"<<"This property will begin eroding in year "<<a<<"."<<endl;
	
	}
	cout<<"END OF OUTPUT."<<endl;
}

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