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 1477. Airplanes

Самолеты(1477)
Posted by svr 20 Dec 2006 10:21
Slow Ac O(N^3*log(N))
O(N^2) -choice plane through two poins and the centre;
O(N*log(N)) -searching semicircle with max number of points
How make more quickly?
Re: Самолеты(1477)
Posted by Vedernikoff Sergey 11 Jan 2007 15:48
To AC it I've used some analog of hash tables when applied second of your algos (O(N^2)). If points A and B are between two points that we check (on a small arc), then we may not check them in the future. Such a trick helped me to AC the problem in 0.14 secs.