And another thing: count2 is always >= count5.
![:lol:](./images/smilies/icon_lol.gif)
Good luck.
Andrey.
Moderator: Board moderators
Hello, RED SCORPIONRed Scorpion wrote:Andrey, I got it in less then 1 sec.
I suggest you read the site:
Http://ipsc.ksp.sk/problems/ipsc1999/sol_d.php
Bye,
RED SCORPION
We must factorize n! into this form: 2^i * 3^j * 5^k * 7^l, and find the corresponding i, j, k, and l.But the question is p(n,m)=n!/(n-m)!
the division is not unique ,
eg. we know the last non-zero digit of n! is 8 , the last non-zero digit of