N!
来源:互联网 发布:网络资源共享的好处 编辑:程序博客网 时间:2024/04/28 05:24
N!
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 10573 Accepted Submission(s): 2547
Problem Description
Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N!
Input
One N in one line, process to the end of file.
Output
For each N, output N! in one line.
Sample Input
123
Sample Output
126
http://acm.hdu.edu.cn/showproblem.php?pid=1042