Three-digit numbers 8
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
List all three-digit perfect squares where the sum of the digits equals m. A perfect square is a number that can be expressed as the square of a natural number.
Input
A natural number m, where 1 ≤ m ≤ 27.
Output
Display the numbers in ascending order on a single line, or output No if no such numbers exist.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 501
Acceptance rate 45%