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

test
Posted by ivailo chernev 4 Apr 2011 03:00
can you give me the answer of this test please:
4
10 10
20 20
10 20
20 10

my program writes 20 but I am not sure if this is the right answer
I STILL GOT WA!!
Re: test
Posted by lerh 4 Apr 2011 03:22
it's 13
Re: test
Posted by ivailo chernev 5 Apr 2011 01:59
wtf... ???? why can you explain
Re: test
Posted by lerh 8 Apr 2011 04:47
distance between first and second is 20 (|10-20 + 10-20|), between first and third is 10 (|10-10 + 10-20|), between first and fourt is 10 (|10-20 + 10-10|) so average for first is (20+10+10) / 3... do the same for second, third and fourth and result is (average for first + average for second + average for third + average for fourth) / n (in your case it's 4)
Re: test
Posted by Ana93 17 Apr 2011 02:55
... and that is 20.
Re: test
Posted by DR. Zhihua Lai 25 Oct 2012 20:19
no, the correct answer for this test is 13.