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

This is my program

[code deleted]

Edited by moderator 04.12.2019 20:51
Victor Barinov (TNU) Try this: (+) [6] // Problem 1024. Permutations 18 Apr 2005 02:39
Change this string:
k = k*k2/gcd(k, k2);

to:
k = k/gcd(k, k2)*k2;
or
k = k2/gcd(k, k2)*k;

Just, when you calculate k*k2 there is overflour, i think.

Edited by author 18.04.2005 02:40
reason supreme Re: Try this: (+) [3] // Problem 1024. Permutations 25 Jan 2008 18:34
yeah,you are right.
my program got the same question and it's ac with your help
THANK YOU VERY MUCH!
nguyenductam Re: Try this: (+) // Problem 1024. Permutations 28 Mar 2010 15:21
I too, thank you very much
nguyenductam Re: Try this: (+) [1] // Problem 1024. Permutations 28 Mar 2010 15:26
I too, thank you very much
gay Re: Try this: (+) // Problem 1024. Permutations 7 May 2010 13:29
I lick ass.mother shit on the floor
Kuchumov_Ilya Re: Try this: (+) // Problem 1024. Permutations 9 Jan 2011 21:57
thank for htis corection....
Yinthewind Re: Try this: (+) // Problem 1024. Permutations 1 May 2011 17:47
thank u very much!!!!