Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
107161 华雅萱 100~999的水仙花数 C++ Accepted 1 MS 264 KB 251 2025-01-17 14:18:16

Tests(1/1):


Code:

#include<iostream> using namespace std; int main(){ int a,b,c,i; for( i=100;i<1000;i++){ a=i/100; b=(i/10)%10; c=i%10; if(a*a*a+b*b*b+c*c*c==i){ cout<<i<<endl; } } return 0; }