Numbers with different digits#583

Numbers with different digits

1 second
64 megabytes
Very easy (≈850)

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

Example 1

Loading
Loading