#include <stdio.h>
#include <stdlib.h>
void main()
{
int x,y,z;
int d;
for(int i = 100; i < 500;i++)
{
d = i;
x = d%10;
d = d/10;
y = d%10;
d = d/10;
z = d;
if( i == (x * x * x + y * y * y + z * z * z))
{
printf("%d: %d %d %d\n",i,z,y,x);
}
}
system("pause");
}

浙公网安备 33010602011771号