Run ID:160325

提交时间:2026-09-15 16:03:07

#include<bits/stdc++.h> using namespace std; bool sxh(int n){ int ge=n%10; int shi=n/10%10; int bai=n/100; if(ge*ge*ge+shi*shi*shi+bai*bai*bai==n){ return true; } else{ return false; } } int main() { int m,n,flag=0; cin>>m>>n; for(int i=m;i<=n;i++){ if(sxh(i)){ cout<<i<<" "; flag++; } } if(flag==0) cout<<"no"; return 0; }