Permutations of n by k
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
For a given natural number , derive all permutations of integers from to to numbers in lexicographic order.
Input
Two natural numbers and ).
Output
Derive all permutations of integers from to to numbers in lexicographic order. Each permutation should be displayed on a separate line.
Examples
Input #1
Answer #1
Submissions 409
Acceptance rate 46%