Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
150850 吴天辰 100~999的水仙花数 C++ Accepted 0 MS 260 KB 213 2026-04-01 15:35:10

Tests(1/1):


Code:

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