#include <stdio.h>
int main() {
for(int a = 1; a < 10; a++)
for(int b = 1; b < 10; b++)
for(int c = 1; c < 10; c++) {
if (a*a*a + b*b*b + c*c*c == a*100+b*10+c) {
printf("%d%d%d\n", a,b,c);
}
}
return 0;
}
标签:10,int,d%,999,C语言,++,100,main
来源: https://www.cnblogs.com/hello-dummy/p/16439971.html