#P12. [System Test] Distinctive Cube Numbers
[System Test] Distinctive Cube Numbers
Person in Charge
Problem Description
A cube number is called a "distinctive digit cube" if all its decimal digits are different.
Examples:
- is NOT a "distinctive digit cube" (repeated 's).
- is NOT a "distinctive digit cube" (not a perfect cube).
- is a "distinctive digit cube".
Obviously, a "distinctive digit cube" cannot have more than digits.
Find all "distinctive digit cubes" with to digits respectively. Note that is considered a valid 1-digit "distinctive digit cube".
Answer Format
This is an output-only problem.
You must submit a zip file named cube.zip containing text files:
1.txt(1-digit cubes)2.txt(2-digit cubes)- ...
10.txt(10-digit cubes)
Requirements:
- One number per line.
- Numbers in ascending order.
- Only "distinctive digit cubes".
- No empty lines.
- No additional characters.
Example: (4.txt)
1728
2197
4096
****
....