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 zhtsuc at 2006-04-01 14:06:41 on Problem 1005
In Reply To:Re:那错了!!!!帮我看一下呀!大师兄! Posted by:y05zyg at 2006-03-07 20:42:09
我帮你改了一下

# include <iostream.h>
# include<math.h>
const double q=acos(-1);
int main()
{
	int t,n;
	float x,y;
	double r;
	cin>>t;
	for(int i=1;i<=t;i++)
	{
		cin>>x>>y;
		r=sqrt(x*x+y*y);
		n=(int)(q*r*r/2)/50;		
		cout<<"Property"<<' ' <<i<<": This property will begin eroding in year "<<n+1<<'.'<<endl;		
	}
		cout<<"END OF OUTPUT."<<endl;
		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