Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164920 赵天睿 判断完全数 C++ Accepted 2 MS 272 KB 220 2026-11-08 10:22:29

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,num=0; cin>>n; for(int i=1;i<n;i++){ if(n%i==0) num+=i; } if(num==n) cout<<"YES"; else cout<<"NO"; }