Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
求n的阶乘
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 692, Accepted users: 653
Problem 10455 : No special judgement
Problem description
  从输入文件中读取一个数n,求出n!。

Input
  输入包含若干组数据,第一行上有一个整数m,指明接下来的数字的个数。然后是m行,每一行包含一个确定的正整数n1£n£10

Output
  对输入行中的每一个数据n,输出一行,其内容是n!。

Sample Input
3
1
5
10
Sample Output
1
120
3628800
Submit   Clarifications   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2025 today,16258752 total, since 2010-05-07