Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
141087 王安安 100~999的水仙花数 C++ Accepted 0 MS 260 KB 206 2025-12-21 11:29:00

Tests(1/1):


Code:

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