You are viewing a single comment's thread. Return to all comments →
import sys n = int(raw_input().strip()) def fact(n): if(n==1): return 1 prod=n*fact(n-1) return prod print fact(n)
Simply forget that n is big. It's python :)
Seems like cookies are disabled on this browser, please enable them to open this website
Extra Long Factorials
You are viewing a single comment's thread. Return to all comments →
Simply forget that n is big. It's python :)