Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146922 余建成 100~999的水仙花数 C++ Accepted 0 MS 268 KB 207 2026-02-01 12:09:15

Tests(1/1):


Code:

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