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 |
简单的二分l=0,r=min(x,y)-0.0001; while(r-l>eps){ ans=(l+r)/2.0; temp=c/sqrt(x*x-ans*ans)+c/sqrt(y*y-ans*ans); if(temp-1<-eps) l=ans+0.0001; else if(temp-1>eps) r=ans-0.0001; else break; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator