Wednesday, May 25, 2011

SPOJ 24. Small factorials. Problem code: FCTRL2


Bottom line:

The 100! does not fit into an integer. You need to store the number as an array or list of integers. You also need to write the code for multiplication (like how it is done with pen and paper).

No comments: