#include <stdio.h>
void main(){
int ge,shi,bai;
for (int i =100; i < 1000; i++)
{
bai=i/100;
shi=i%100/10;
ge=i%100%10;
if(bai*bai*bai+shi*shi*shi+ge*ge*ge==i)
printf("%d \t",i);
}
printf("\n");
}
时间: 2024-10-09 08:01:56