Permutations
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given a positive integer , print all permutations of the integers from to in lexicographical order.
Input
One positive integer .
Output
Print all permutations of the integers from to in lexicographical order. Print each permutation on a separate line.
Examples
Input #1
Answer #1
Submissions 3K
Acceptance rate 58%