Register
|
Login
HOME
PROBLEMSET
ROADMAP
COMPETITION
TOPIC
RANKING
GUIDE
MASHUP
ABOUT
CONTACT
Problem
Submit
Results
Factorial - MarisaOJ: Marisa Online Judge
Factorial
Time limit: 1000 ms
Memory limit: 256 MB
Given an integer $n$, calculate $n! = 1 \times 2 \times \ldots \times n$. ### Input - One line containing an integer $n$. ### Output - Print the value of $n!$. ### Constraints - $1 \le n \le 15$. ### Sample Input: ``` 4 ``` Output: ``` 24 ```
Loop
Loop
Even numbers
Factorial
Star Triangle
Folding paper
Fraction
Divisors
Complex Exponentiation
Prime number
Digit Sum
Fibonacci
Read number till eternity
Extremal
Reverse
Mushroom exchanging
Trailing zeros
Decimal to binary
Binary to decimal
Division
Solution
Topic
Basic
Rating
800
Solution (0)
Solution