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 1286. Starship Travel

Vasya test 16 is terribly! HELP!!!!!! [4] // Problem 1286. Starship Travel 5 Jun 2004 15:31
I am sure that my program is right, but i get WA on test 16.
Do somebody know this test or can say something interesting?
Тёма и Серёжа Re: test 16 is terribly! HELP!!!!!! [3] // Problem 1286. Starship Travel 7 Jun 2004 19:59
I think, you haven't really proved your algorithm. I guess it's much more interesting than just gcd.
Sergei
Tiberiu Danet Re: test 16 is terribly! HELP!!!!!! [2] // Problem 1286. Starship Travel 1 Aug 2004 20:22
Try using long long and read your data like this
    scanf( "%I64d%I64d%I64d%I64d%I64d%I64d", &p, &q, &sx, &sy, &ex, &ey );
Tolstobrov_Anatoliy[Ivanovo SPU] Re: test 16 is terribly! HELP!!!!!! // Problem 1286. Starship Travel 14 Aug 2005 20:53

Thanks for all,
if not you I die near my PC.
THANK YOU,TOO!