#P12. [System Test] Distinctive Cube Numbers

[System Test] Distinctive Cube Numbers

Person in Charge

Problem Description

A cube number xx is called a "distinctive digit cube" if all its decimal digits are different.

Examples:

  • 343343 is NOT a "distinctive digit cube" (repeated 33's).
  • 841841 is NOT a "distinctive digit cube" (not a perfect cube).
  • 512512 is a "distinctive digit cube".

Obviously, a "distinctive digit cube" xx cannot have more than 1010 digits.

Find all "distinctive digit cubes" with 11 to 1010 digits respectively. Note that 00 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 10\bm{10} 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
****
....