LearnPy Hub
← Modules & the Standard Library problems
Medium

Count Arrangements

Read n and k and print the number of ways to choose k items from n (math.comb) and to arrange k of n items (math.perm).

Input

Two integers.

Output

Two numbers.

Sample 1

Input
5
2
Output
10 20

Sample 2

Input
10
3
Output
120 720
solution.py
Output appears here
Count Arrangements · Python practice problem · LearnPy Hub