Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
78816 sh25_zhangjiajia 水仙花数 C++ 通过 0 MS 240 KB 317 2025-12-28 09:38:11

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; for(a=1;a<=9;a++){ for(b=0;b<=9;b++){ for(c=0;c<=9;c++){ if(100*a+10*b+c==a*a*a+b*b*b+c*c*c){ cout<<100*a+10*b+c<<endl; } } } } return 0; }


测评信息: