Run ID:163753

提交时间:2026-10-29 20:20:36

#include<iostream> #include<cmath> //sqrt() using namespace std; int main(){ int g,s,b,x; for(int i=100;i<=999;i++){ g=i%10; s=i/10%10; b=i/100%10; if(b*b*b+s*s*s+g*g*g==i)cout<<i<<" "; } return 0; }