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 1024. Permutations

where's the mistake
Posted by Amy 22 Jul 2003 15:32
[code deleted]

Edited by moderator 04.12.2019 21:15
Re: where's the mistake
Posted by Jack(China) 22 Jul 2003 21:28
[code deleted]
  if a mod y=0 then begin a:=a div y; pd:=a*b; end
  else if b mod y=0 then begin b:=b div y; pd:=a*b; end;

   Because a*b>maxlongint.
[code deleted]

Edited by moderator 04.12.2019 21:16