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