Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
58547 王一涵(吃土豆长大的马铃薯) 水仙花数 C++ 通过 0 MS 232 KB 268 2024-12-12 17:01:52

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int n=100; while(n<1000) { if(n==(n/100)*(n/100)*(n/100)+(n/10%10)*(n/10%10)*(n/10%10)+(n%10)*(n%10)*(n%10)) cout<<n<<" "; n++; } cout<<endl; return 0; }


测评信息:

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0