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 2111. Plato

Why example is correct?
Posted by ToadMonster 9 Dec 2019 15:03
Let we visit towns by distance ascending: 1, 2, 3
So total fine is : (6+5) + (5*2+3*2) + 3 = 11 + 16 + 3 = 30
Where am I wrong?
Re: Why example is correct?
Posted by ToadMonster 10 Dec 2019 12:53
My mistake:
Total fine is : (6+5) + (5*2+3*2) + 3*3 = 11 + 16 + 9 = 36