Run ID:79145
提交时间:2024-06-30 14:30:01
#include<iostream> using namespace std; int main(){ int g,s,b,z; for(int i=100; i <= 999; i++){ g = i%10; s = i/10%10; b = i/100%10; z = g*g*g+s*s*s+b*b*b; if(z == i){ cout<<i<<" "; } } return 0; }