#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int a = 100;
int x, y, z;
do {
x = a / 100;
y = a % 100 / 10;
z = a % 100 % 10;
if (((x * x * x) + (y * y * y) + (z * z * z)) == a)
{
cout << a << endl;
}
a++;
} while (a < 1000);
return 0;
}
水仙花数目
最新推荐文章于 2024-10-06 10:17:48 发布