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 1541. Chase

Where are answer is "No solution"?
Posted by Cat36 31 Oct 2008 03:49
I want to use greedy algorithm with particular cases
Number of particular cases is no more when 141 :)
Re: Where are answer is "No solution"?
The answer always exists. Greedy will not work - use brute-force
Re: Where are answer is "No solution"?
Posted by Cat36 31 Oct 2008 21:26
Thanks!
Re: Where are answer is "No solution"?
Posted by Cat36 17 Dec 2008 03:35
AC 0.015 without brute-force
one random value  + greedy