提交时间:2025-04-08 21:37:56

运行 ID: 9211

#include<bits/stdc++.h> using namespace std; int n,b,j; int main(){ cin>>n; for(j=1;j<=n/2;j++){ if(n%j==0){ b+=j; } } if(b==n){ cout<<"yes"; }else{ cout<<"no"; } return 0; }