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 |
请教一下,精度问题怎么解决?高斯消元后得到椭圆方程 A*x^2+B*y^2+C*x*y+D*x+E*y+F==0 然后直接套公式 S=2*pi*sqrt(4*A*B-C^2)*abs(F*C^2-4*A*B*F-C*D*E+A*E^2+B*D^2)/(4*A*B-C^2)^2 . 4*A*B-C*C<=0 输出 IMPOSSIBLE 一直WA 请教怎样减少精度误差? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator