P381: Enumeration of all arrangements with $n$ marks

P381: Enumeration of all arrangements with $n$ marks
Input:
An integer $n$.
Output:
All arrangements with $n$ marks.
Complexity:
$O(n!)$ total time.
Comment:
Reference:
[Wells1961] (Bibtex)