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 1795. Husband in a Shop

WA9
Posted by PrankMaN 18 Aug 2013 02:42
I had a stupid mistake
Instead of:
shop[want] -= q[r].amount;
I had:
shop[want] = q[r].amount;