Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
125768 王金檐 水仙花数II C++ Accepted 1 MS 268 KB 274 2025-07-15 14:55:49

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int n,m; cin>>m>>n; int p=0; for(int i=m;i<=n;i++){ int a=i%10; int b=i%100/10; int c=i/100; if(a*a*a+b*b*b+c*c*c==i){ cout<<i<<" "; p++; } } if(p==0){ cout<<"no"; } return 0; }