Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
52683 | wuzhiyan | 水仙花数 | C++ | Compile Error | 0 MS | 0 KB | 214 | 2024-10-11 23:07:28 |
#include<bits/stdc++.h> using namespace std; int main() { for(int x;x<=999;x++) int a=x%10,b=x/10%10,c=x/100; if(x=a*a*a+b*b*b+c*c*c) cout<<x<<endl; return 0; }