Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
430903 许舒睿 【C2-10】水仙花数 C++ 通过 100 3 MS 248 KB 271 2026-03-05 19:33:29

Tests(10/10):


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


测评信息: