Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95011 罗迎甲 100~999的水仙花数 C++ Accepted 0 MS 260 KB 209 2024-10-26 16:26:50

Tests(1/1):


Code:

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