ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1874. Football Goal

Need a help
Posted by Islam 26 Oct 2011 12:03
Please, can anybody tell how to solve this problem, which algorithm is used, how could the answer of sample test be 4.828427125?
Re: Need a help
Posted by megabyte 30 Oct 2011 17:12
maybe a maximum of (2xy+x*sqrt(a*a-x*x)+y*sqrt(b*b-y*y))/2 should do