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

The Punisher Why WA on #24 [3] // Problem 1430. Crime and Punishment 1 Mar 2006 16:31
First I got TL on #24
Then I got WA on #24
Are there large answer?
 Thanks.
Igor E. Tuphanov Re: Why WA on #24 [2] // Problem 1430. Crime and Punishment 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.
The Punisher Re: Why WA on #24 // Problem 1430. Crime and Punishment 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...
The Punisher Re: Why WA on #24 // Problem 1430. Crime and Punishment 15 Jan 2007 23:31
got AC