Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
55826 | 张思存 | 水仙花数 | C++ | Accepted | 0 MS | 232 KB | 264 | 2024-11-08 15:51:16 |
#include<bits/stdc++.h> using namespace std; int main() { int n=100; while(n<1000) { if(n==(n/100)*(n/100)*(n/100)+(n/10%10)*(n/10%10)*(n/10%10)+(n%10)*(n%10)*(n%10)) cout<<n<<" "; n++; } cout<<endl; return 0; }