Run ID:8092

提交时间:2025-06-14 09:47:57

#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; bool f=false; for(int i=a;i<=b;i++){ if(pow(i%10,3)+pow(i/10%10,3)+pow(i/100,3)==i){ f=true; cout<<i<<' '; } } if(f==false){ cout<<"no"<<endl; } return 0; }