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 1325. Dirt

Show all messages Hide all messages

Re: I got AC in 1254 with 0.265 but on this problem I got TLE 21 Yurchuk Maxim, Rybinsk, Liceum #2 11 Jan 2009 18:43
Strange.. in 1254 a got AC with 3.656, but in 1325 with 0.625..
maybe you use another method. i used heap, and pop element with less distantion. BTW i suppose, that distantion between clear square and dirty is very big, 200000 is enough. And this path is solution of problem.

Edited by author 11.01.2009 18:47
No, I used the same method OpenGL 11 Jan 2009 19:02
Re: No, I used the same method Yurchuk Maxim, Rybinsk, Liceum #2 12 Jan 2009 10:37
strange.. maybe you have mistake in solution. btw i use int64 in heap, with longint i have WA.