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 1058. Chocolate

Who 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?
Posted by Burunduk1 20 Jun 2006 14:32
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 :)