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 后者CE - -#

Posted by allen4053040allen at 2010-06-08 11:11:50 on Problem 2253
In Reply To:附上CE程序 Posted by:allen4053040allen at 2010-06-08 11:01:39
double distance(double e1x, double e1y, double e2x, double e2y)
{
	return sqrt((e1x - e2x) * (e1x - e2x) + (e1y - e2y) * (e1y - e2y));
}

//以下就不行!!!
/*
double distance(P e1, P e2)
{
	return sqrt((e1.x - e2.x) * (e1.x - e2.x) + (e1.y - e2.y) * (e1.y - e2.y));
}
*/

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