#include<iostream> #include<math.h> using namespace std; int main(){ int i = 100; while(i <= 999){ int a = i / 100; int b = i / 10 % 10; int c = i % 10; if(a * a * a + b * b * b + c * c * c == i){ cout<<i<<endl; } i++; } return 0; } /************************************************************** Problem: 1058 User: admin Language: C++ Result: Accepted Time:4 ms Memory:2072 kb ****************************************************************/