提交时间:2024-12-12 17:01:52

运行 ID: 58547

#include<bits/stdc++.h> using namespace std; int main() { int n=100; while(n<1000) { if(n==(n/100)*(n/100)*(n/100)+(n/10%10)*(n/10%10)*(n/10%10)+(n%10)*(n%10)*(n%10)) cout<<n<<" "; n++; } cout<<endl; return 0; }