| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147151 | 孔声豪 | 判断完全数 | C++ | Accepted | 1 MS | 272 KB | 263 | 2026-02-03 11:09:22 |
#include <iostream> using namespace std; int main (){ int n,m=0,s; cin>>n; for(s=1;s<n;s++){ if(n%s==0){ m+=s; } } if(m==n){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }