| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134604 | 何旻慧 | 判断完全数 | C++ | Wrong Answer | 1 MS | 264 KB | 481 | 2025-10-29 19:00:52 |
#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(){ int sum=0,j=1,i; cin>>i; while(i!=j){ if(i%j==0){ sum+=j; } j+=1; } if(sum==i){ cout<<"Yes";} else { cout<<"No"; } return 0; }
------Input------
787
------Answer-----
NO
------Your output-----
No