OnlineJudge 3 现已推出。点此体验新版：Factorial | SDUT OnlineJudge
Time Limit: 2000 ms Memory Limit: 65536 KiB
Homelesser hates mathematics. He cannot even do addition and subtraction, not to mention computing factorial. He asks Cainiao2hao for help. Cainiao2hao is always busy solving more difficult problems. And now, please help Homelesser to compute factorial. If you cannot do it well, Cainiao2hao will think you are as fool as Homelesser.
The first line contains only one integer T (T is about 10) indicates the number of test cases. For each case there are one integer n (0 ≤ n ≤ 10).
One line for each case specifying the factorial of n.
2 4 3