amanjain1108935's blog

By amanjain1108935, 11 years ago, In English

http://www.spoj.com/problems/CALCULAT I have been trying solving this problem, I have first tried to calculate first k digits of factorial using stirling approximation but due to precision my code don't give perfect ans for all factorials and I cant figure out how to find last l digits of factorial. Can someone tell me how to crack this problem. Thnks.

  • Vote: I like it
  • -1
  • Vote: I do not like it