Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
126802 林建彤 水仙花数 C++ 通过 100 0 MS 240 KB 202 2024-01-24 17:08:31

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { bool flag=0; for(int i=100;i<=999;i++){ int a=i%10,b=i/10%10,c=i/100%10; if(a*a*a+b*b*b+c*c*c==i) cout<<i<<" "; } return 0; }


测评信息: