Run ID:95010
提交时间:2024-10-26 16:25:42
#include<bits/stdc++.h> using namespace std; int main() { int b,s,g; for(int i=100;i<=999;i++){ b=i/100; s=(i/10)%10; g=i%10; if(b*b*b+s*s*s+g*g*g==i){ cout<<i<<" "; } } return 0; }