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 1640. Circle of Winter

If restrictions on the radius were lower, what would be a good algorithm for the problem?
Posted by Jihan Yin 7 Nov 2014 10:55
I originally read the problem statement as stating that the radius could only be up to 1000 in length. Hence, I was really confused when everyone was saying the problem was really easy. But that nightmare is behind me now.

I never figured out how to do it with that kind of restriction of the radius in under 1 second. What would be the optimal algorithm to use for that case?
Re: If restrictions on the radius were lower, what would be a good algorithm for the problem?
Posted by Mahilewets 31 May 2017 01:34
I used the following thing :
(1) calculate median_X=sum(X[i] )/n,  do the same for Y.  (2) Teleport and find max distance from demon to Sandro.