Numbers with different digits
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
The program takes a natural number n as input. It should output the count of n-digit natural numbers where all the digits are distinct.
Input
A natural number n (n ≤ 10).
Output
The number of n-digit natural numbers with unique digits.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 25%