#include <iostream>
#include<cmath>
using namespace std;
int main() {
// write your code here......
for (int i = 100; i <= 999; i++) {
if (pow(i % 10, 3) + pow((i / 10) % 10, 3) + pow((i / 100) % 10, 3) == i)
cout << i << endl;
}
return 0;
}

京公网安备 11010502036488号