楼主好无聊,其实我也没事干~~
class wuliao
{
public static void main(String[] args)
{
print();
}
static void print()
{
int i,j,k,l;
for(int y=1;y<4000;y++)
{
i=y%10;
j=(y/10)%10;
k=(y/100)%10;
l=(y/1000)%10;
if(y==i*i*i+j*j*j+k*k*k+l*l*l)
System.out.print(y+"\t");
}
}
}
|
|