Run ID:64594
提交时间:2024-01-21 17:05:58
#include<bits/stdc++.h> using namespace std; int main(){ int n,zq2=0,zq=0,m,g=0,s=0,b=0,g2=0,s2=0,b2=0; cin>>n>>m; for(int x=n;x<=m;x++){ b=x/100; s=x/10%10; g=x%10; if(g*g*g+s*s*s+b*b*b==x){ cout<<x<<" "; zq=1; } } if(zq==0){ cout<<"no"; } return 0; }