Friday, August 15, 2014

COJ 1238. Factorial Again!

 This task doesn't require any algorithmic planning , just a good implementation is enough. You can start looping from right to left, meanwhile calculating the factorial for the current position and taking the last digit of the number multiply and add the answer, and simply removing the last digit by dividing the number to 10. Check the source code for a better understanding


       DOWNLOAD THE FULL SOURCE CODE


No comments:

Post a Comment