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 1430. Crime and Punishment

Why WA on #24
Posted by The Punisher 1 Mar 2006 16:31
First I got TL on #24
Then I got WA on #24
Are there large answer?
 Thanks.
Re: Why WA on #24
Posted by Igor E. Tuphanov 1 Mar 2006 16:37
No. No large answer. How could it be large? Everything is quite simple. You can solve this problem occasionally, even if not think much.
Re: Why WA on #24
Posted by The Punisher 1 Mar 2006 18:51
I try to took "j" goods for A$ and  goods for B$ on rest money.
Then I try to took "j" goods for B$ and goods for A$ on rest money.
0<="j"<=min(n/a,b)
What's wrong?
My single idea :my code can generate negative numbers as answer.
I don't understand anything...
Re: Why WA on #24
Posted by The Punisher 15 Jan 2007 23:31
got AC