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 Лев 25 Nov 2021 23:39
the store had the product, but sold it = the store did not have the product
if (!Products.count(name) || !Products[name]) Purchases.erase(Purchases.begin() + i);