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 in 0.046 sec but....
Posted by Furtuna Dan Emanuel 1 Sep 2006 17:50
it's based just on randomization+DP and the runtime goes from 0.046 to 0.23 sec depending on the seed used.
I don't know if it can be beat easily.
It's a very simple program, by the way.

Edited by author 01.09.2006 17:52
I got it somewhat stable now
Posted by Furtuna Dan Emanuel 1 Sep 2006 18:56
After some improvements, the runtime does not vary much and I got a 0.015 sec AC.
Hope admins add some more tests or increase the size of the test cases so I can see if my solution is good for something.