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 1294. Mars Satellites

Why if ad*ac-bd*bc==0 it's impossible? In some place it is really impossible, but not for test:
Posted by Fly [Yaroslavl_SU] 11 Oct 2005 13:20
Why if ad*ac-bd*bc==0 it's impossible? In some place it is really impossible, but not for test:
1 2 2 1
I can select any length from interval (1,3) and it should be right answer!
Re: Why if ad*ac-bd*bc==0 it's impossible? In some place it is really impossible, but not for test:
Posted by Zerolog1c [LNU] 1 Dec 2005 00:11
Cause we cant calculate cos(angle) = (c^2 + d^2 - a^2 - b^2)/(2cd-2ab)

This is a cos(angle) beetween AD and AC (or BD and BC).

We'll have a division by thero..
Re: Why if ad*ac-bd*bc==0 it's impossible? In some place it is really impossible, but not for test:
Posted by asd 3 Feb 2006 23:01
But if
0 0 0 0
we can say that distanse = 0!!!
Problem statement says: positive integers (-)
Posted by Michael Rybak (accepted@ukr.net) 10 Feb 2006 16:49
-