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 |
谢谢,真的可以0msIn Reply To:直接二分答案, 1e-4精度飘过 Posted by:porker2008 at 2011-08-05 17:38:16 本来就直觉二分答案,看着前期的discuss发现大家都二分角度……有的WA有的TLE…… 其实根据三条等式:(lx是所求,r是半径,a是弧所对应圆心角) r^2+r^2-2*r*r*cos(a)=l^2(余弦定理) r^2=(r-lx)^2+(l/2)^2(勾股定理) r*a=n*c*l+l Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator