LightOj 1189 Sum of Factorials Add Comment Edit Hints: The highest number n is 10^18 . So highest factorial is 20! . So at first pre calculate factorials from 0 to 20. Then check fro... Read More