#include using namespace std; int main(void){ int n = 0; int a = 0; int i = 0; long long num = 0; int *x; float res = 0.00; cin >> n >> a; x = new int[n]; for(i=0;i> x[i]; num += x[i]; } cout << "num: " << num << "\n" << "n: " << n << "\n"; res = (float)num/(float)n; if(res == a){ cout << "YES\n"; //cout << "res: " << res << "\n" << "a: " << a << "\n" << "YES\n"; }else{ cout << "NO\n"; //cout << "res: " << res << "\n" << "a: " << a << "\n" << "NO\n"; } return (0); }