| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 143385 | 杨启宏 | 水仙花数 | C++ | Wrong Answer | 0 MS | 264 KB | 558 | 2026-01-13 19:21:26 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long n,i,m=0,o=0,p=0,s=0; cin>>n>>i; while(n<=i){ m=0; m=n%10; m=m*m*m; o=n%100/10; o=o*o*o; p=n/100; p=p*p*p; s=m+o+p; if(n==s){ cout<<n<<" "; } n++; } return 0; }
------Input------
100 130
------Answer-----
no
------Your output-----