Run ID:15443
提交时间:2021-07-15 16:21:25
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c=0; cin>>a>>b; for(int i=a;i<=b;i++) { int t=i%10; t=t*t*t; int tt=i/10%10; t+=tt*tt*tt; tt=i/100; t+=tt*tt*tt; if(t==i) { if(c==0) cout<<i; else cout<<" "<<i; c++; } } if(c==0) cout<<"no"; cout<<endl; return 0; }