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

谢谢,真的可以0ms

Posted by godofwa2 at 2012-07-21 14:45:35 on Problem 1905
In 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:
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