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

精度要求好高啊。算面积的时候不能开方,要用叉积和面积比来计算。

Posted by yygy at 2012-12-30 19:17:17 on Problem 2826
double area(Point a,Point b,double y)
{
	
	Point u=Point(a.x,b.y);
	double ret=fabs(cross(a,b,a,u))*y*y/((a.y-b.y)*(a.y-b.y));
	return ret/2;
}

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