Run ID:98631
提交时间:2024-11-23 11:53:46
#include<iostream> using namespace std; int main(){ int a,b=0; cin>>a; for(int i=1;i<a;i++){ if(a%i==0){ b+=i; } } if(a==b){ cout<<"YES"; } else{ cout<<"NO"; } }