提交时间:2024-11-08 15:51:16

运行 ID: 55826

#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; }