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 1394. Ships. Version 2

AC !!!
Posted by Burunduk1 20 Jan 2006 11:39
A had two solutions. (The same optimizations BUT)
In the first one I sorted rows' lengths in increasing order. It got TL 24.
In the second one I sorted rows' lengths in decreasing order. It got TL 17.
I've connected both solutions and have got AC in 0.062 !!!
My congratulations!
Posted by Vladimir Yakovlev (USU) 21 Jan 2006 17:44
Your solution is truly AC!
I tried 2000000 or random tests and your solution passed all. By the way, your way of solving differs from mine.
:))
Posted by Burunduk1 21 Jan 2006 18:12