Run ID:79221

提交时间:2024-06-30 15:20:36

#include<bits/stdc++.h> using namespace std; int main(){ long long m,n,sum = 0; cin >> n; while(m < n){ int yu =m % n; sum = sum+yu; } if(sum == n){ cout <<"YES"; } else{ cout << "NO"; } return 0; }