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

test 16 is terribly! HELP!!!!!!
Posted by Vasya 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!!!!!!
Posted by Тёма и Серёжа 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
Re: test 16 is terribly! HELP!!!!!!
Posted by Tiberiu Danet 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 );
Re: test 16 is terribly! HELP!!!!!!
Posted by Tolstobrov_Anatoliy[Ivanovo SPU] 14 Aug 2005 20:53

Thanks for all,
if not you I die near my PC.
Re: test 16 is terribly! HELP!!!!!!
Posted by LNCP 7 Feb 2015 20:48
THANK YOU,TOO!