提交时间:2025-04-08 21:37:08
运行 ID: 9210
#include<bits/stdc++.h> using namespace std; int n,b,j; int main(){ cin>>n; for(j=1;j<=n;j++){ if(n%j==0){ b+=j; } } if(b==n){ cout<<"yes"; }else{ cout<<"no"; } return 0; }