Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
精度要求好高啊。算面积的时候不能开方,要用叉积和面积比来计算。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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator