#include<stdio.h>
#include<math.h>
int main(){
int a, b, c, n1;
for (a = 1; a <=9; a++)
for (b = 0; b <=9; b++)
for (c = 0; c <=9; c++)
{
n1 = a * 100 + b * 10 + c;
if (n1 == pow(a, 3) + pow(b, 3) + pow(c, 3))
printf("%d\n", n1);
}
return 0;
标签:int,main,include,水仙花,n1
From: https://blog.51cto.com/u_16327797/8240194