Run ID:12270
提交时间:2021-05-20 14:01:04
#include <bits/stdc++.h> using namespace std; bool p; int main(){ int a,g,s,b,d,r; cin>>d>>r; for(;d<=r;d++){ g=d/100; s=(d/10)%10; b=d%10; if(g*g*g + s*s*s+b*b*b==d) { cout<<d<<" "; p=1; } } if(p==0) cout << "no"; return 0; }