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 1650. Billionaires

Could you explain some moments in this problem?
Posted by roman velichkin 1 Jun 2022 13:12
Is there possible such test:
1
A aa 10
1 1
1 A bb ?

If then, what correct solution will be: 'aa 1' or 'aa 1, bb 1'?



k - is it a day when person comes to city? Or it is a day when he goes to that city - so person comes in this city on next day?

Why in example 25 days, but result has only 20 days? If two cities have same largest amount of money then it shouldn't be counted?


Edited by author 02.06.2022 13:52