Small Factorials
Ad Hoc
81.0% success
2,215 attempts
3s time
256MB memory
1024KB max code

You are asked to calculate factorials of some small positive integers.

InputAn integer T, denoting the number of testcases, followed by T lines, each containing a single integer N.

Output For each integer N given at input, output a single line the value of N!

Input Constraint

1 <= T <= 100 1 <= N <= 100

Examples
Input
4
1
2
5
3
Output
1
2
120
6

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading Editor...