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 1040. Airline Company

Wrong Sample input and Output ? Please help me .
Posted by Nguyen Viet Bang 19 Jun 2002 15:03
  Please consider the Sample input and output :
  The 1st flight ( connects 1 and 2 ) and the 2-nd flight ( 2-3)
are flights that depart from one airport ( airport 2 ) ( The flight
are 2 directions flight ) . But the sample output indicates
that their numbers are 4 and 2 , so their greatest common divisor
can't be 1 as the problem description !
   I don't know if I wrong . I got WA too . Please explain for me
Thanks a lot ! .
Re: Wrong Sample input and Output ? Please help me .
Posted by Vlad Veselov 16 Apr 2004 21:33
You must calculate greatest common divisor of all flights, that departs from one airport. For airport 2 this numbers are 2,3,4 and there greatest common divisor is 1.
Re: Wrong Sample input and Output ? Please help me .
Posted by reason supreme 1 Feb 2008 05:07
thank you very much!