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 1348. Goat in the Garden 2

Sid WA#9 [3] // Problem 1348. Goat in the Garden 2 20 Mar 2005 16:20
Does anybody know what mistake can it be?
XmasSoul Re: WA#9 [2] // Problem 1348. Goat in the Garden 2 21 Mar 2005 18:36
I also have WA9.
Maybe it's some special case?
Cybernetics Team Re: WA#9 [1] // Problem 1348. Goat in the Garden 2 24 Mar 2005 01:50
At least, AC!

Here's other special cases: the triangle is acute so the minimal distance is the perpendicular and the triangle is obtuse so the minimal distance is the min from C to A and B.

Edited by author 24.03.2005 01:51
XmasSoul Re: WA#9 // Problem 1348. Goat in the Garden 2 24 Mar 2005 15:29
AC.
The thing is that the answer to the second question is Max(0, answer).