#T560. 4位数排列
4位数排列
Description
Given any four distinct non-zero digits, find all four-digit numbers that can be formed using these four digits.
Input Format
One line containing four single-digit numbers.
Output Format
Six four-digit numbers per line, arranged in ascending order
```input1 3 2 1 6 ``` ```output1 1236 1263 1326 1362 1623 1632 2136 2163 2316 2361 2613 2631 3126 3162 3216 3261 3612 3621 6123 6132 6213 6231 6312 6321 ``` ## 译文CodesOnline