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

To admins: please, add tests!
Posted by Dmitri Belous 17 Sep 2017 22:08
My simple wrong program skips necessary mathematical checks, but it got AC.

1 20 5 5
Answer: Impossible.
(Wrong solution skipped the check of cos(∠DAC) bounds; a cosinus must be from -1 to 1)

5 7 4 7
Answer: Impossible.
(Wrong solution skipped the check of the order of satelites; the test case is from the task subscription, I've just changed the positions of A and B satelites).
Re: To admins: please, add tests!
Posted by Vladimir Yakovlev (USU) 19 Sep 2017 04:28
Unfortunately both tests are incorrect. "Impossible" means only "ambiguous" in this problem.
Re: To admins: please, add tests!
Posted by Dmitri Belous 19 Sep 2017 13:56
Oh, ok. Sorry :)