Digits and Sums
Write a program that will find all the three-digit natural numbers that are equal to the sum of the cubes of their digits. The range of number will be 100 ≤ M ≤ N ≤ 999. The input will be two numbers: M and N where M is the lesser 3 digit number and N is the greater 3 digit number.
Explanation of output: For example, the number 153 = 1*1*1 + 5*5*5 + 3*3*3, therefore it should be outputted.
Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Oct 26, 2008
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3