|
|
back to boardWho can give me some tests? Posted by wxsxg 20 Jun 2006 14:20 I got wrong answer test#8, using O(n^3) algorithm. I have checked my code for many times, but I can not find what's wrong with it. Re: Who can give me some tests? I also had A LOT of troubles with this problem... But one cheat is avaible :) Fix one point (take about 100 (in fact 10 is enough :) points on each segment) And than calculate second one for each first. And choose minimum of received lengths... This solution is very easy to code and gets AC. My wrong solution failed on the first big random test... Edited by author 20.06.2006 14:34 Re: Who can give me some tests? Posted by wxsxg 20 Jun 2006 16:01 I've got ac now :) |
|
|