TopCoder

Omelet
ㄏ一ㄏ一 軟軟好香

User's AC Ratio

100.0% (204/204)

Submission's AC Ratio

85.4% (280/328)

Tags

Description

給你 n,請輸出 n!。 (注意:沒有多重輸入)

並且 0n<13 ,即保證不會超出int範圍。

n! 的定義為: n!=n×(n1)!0!=1

Input Format

輸入只有一個數字n

Output Format

請輸出n!

Sample Input 1

7

Sample Output 1

5040

Hints

Tmt註:如果您看到的數學式子是亂碼(MathML造成),請使用IE6(以上)或Firefox。造成您的不便,敬請見諒!

Problem Source

原TIOJ1295 / TFcis9 留社考(prob 1)。Problem Setter: sa072686。

Subtasks

No. Testdata Range Score
1 0 50
2 1 50

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 65536 262144 1
1 1000 65536 262144 2