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 1083. Factorials!!!

Tricky question. Read it CAREFULLY. Expand to see the hint.
Posted by Ashwin Kumar 31 Dec 2013 23:42
the product is : n*(n-k)*(n-2*k)... till---> k if divisible by k, i.e. the last non zero  value of n OR n(mod)k which is again the last non zero value of n.
You don't have to multiply it with k or n mod k again.