Factorial 4
InterviewTime limit5sMemory limit1024 MB
Given N from 0 to 100,000, print N! exactly. The result has up to about 456,000 digits, so the program needs big-number multiplication.
- Level
Easy3 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
Given an integer that is greater than or equal to 0, write a program that prints .
Input
The first line contains an integer ().
Output
Print on the first line.