93. Permutations

Easy

Use a permutation when order matters and repetition is not allowed:

nPr=n!(n−r)!_nP_r = \frac{n!}{(n-r)!}

Return the number of ways to fill r distinct ordered roles from n people.

Input

n = 12
r = 3

Output

1320
Implement solve(...)