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 1726. Visits

Explain sample input
Posted by Tashkent IAC 20 Oct 2009 17:48
Can you explain sample input?
How did we get answer 13?
Re: Explain sample input
Posted by Sergey Lazarev (MSU Tashkent) 20 Oct 2009 19:49
The first man has to go 20 to the second and 10 to the third. Avarage distance is 15.
The second man has average distance 15, and the third man has average distance 10.
And average distance for all is (int)((15+15+10)/3) = 13.
Re: Explain sample input
Posted by Igor9669(Tashkent IAC) 21 Oct 2009 11:03
Thanks,now I understood it!