Run ID:96649

提交时间:2024-11-09 11:30:47

#include<bits/stdc++.h> using namespace std; int n,m,a = 0; int main(){ cin>>m>>n; for (int i = m;i <= n;i++){ int g = i % 10; int s = i / 10 % 10; int b = i / 100 % 10; if (g * g * g + s * s * s + b * b * b == i){ cout<<i<<" "; a++; } } if (a == 0){ cout<<"no"; } return 0; }