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 1474. About Frogs

Is there more simple, mathematical way to solve this problem?
Posted by VladG 25 Sep 2006 15:24
Is there more simple, mathematical way to solve this problem other than actually play the game with some smart heuristics (what I did in my solution)?
Re: Is there more simple, mathematical way to solve this problem?
Posted by Olly 25 Feb 2007 18:23
yes, there is :)
I used no array, just 4 variables n,t and legendary pair i,j ;)
Re: Is there more simple, mathematical way to solve this problem?
Posted by Denis Koshman 24 Jul 2008 16:39
I used greedy approach. Prefer jumping to movement. Do not allow blockades. In case of tie keep empty space closer to border.
Re: Is there more simple, mathematical way to solve this problem?
I used simple brute-force =)