Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
12383 A班-袁誉晏 求出100至999范围内的所有水仙花数。 C++ 运行超时 0 1000 MS 248 KB 316 2025-07-10 20:16:13

Tests(0/1):


#include <bits/stdc++.h> using namespace std; int n(int a) { int g,s,b; for(int a=100;a<1000;a++) { b=a/100; s=a/10%10; g=a%10; if(a==g*g*g+s*s*s+b*b*b) { cout<<a<<endl; } } } int main() { int o; cout<<n(o); }


测评信息: