Three-digit numbers 3
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
List all three-digit numbers where each digit is unique and their sum equals m.
Input
A natural number m, where 1 ≤ m ≤ 27.
Output
Display the numbers in ascending order on a single line. If no such numbers exist, output No.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 545
Acceptance rate 45%