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

Ternary search works well
Posted by Alexey Dergunov [Samara SAU] 12 Jul 2012 20:41
I thought that there will be presicion problems, but it turned out that ternary search works pretty well.
Re: Ternary search works well
Posted by Andrew Sboev 12 Jul 2012 22:57
There is a formula! It is so easy to find it using derivative! It is not so cool to solve this problem using ternary search!
Re: Ternary search works well
Posted by Alexey Dergunov [Samara SAU] 12 Jul 2012 23:03
I tried but it was too difficult for me.
Re: Ternary search works well
Posted by Andrew Sboev 12 Jul 2012 23:23
Hmm, I spent about 3-5 minutes to find this formula :)