All Tracks Algorithms Searching Ternary Search Problem

Small Factorials
/

Ad-Hoc

Problem
Editorial
Analytics

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

Input
An 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

SAMPLE INPUT
4
1
2
5
3
SAMPLE OUTPUT
1
2
120
6
Time Limit: 3.0 sec(s) for each input file.
Memory Limit: 256 MB
Source Limit: 1024 KB

Best Submission

Similar Problems

Contributors

This Problem was Asked in

Initializing Code Editor...
Notifications
View All Notifications

?