提交时间:2025-04-08 21:36:51

运行 ID: 9209

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