#include using namespace std; int t, n; long long a[200000]; int main(){ cin >> t; for(int j = 0; j < t; j++){ cin >> n; long long s = 0, u = 0; bool f = 0; for(int i = 0; i < n; i++){ cin >> a[i]; s += a[i]; } if(s % 3 == 0){ s /= 3; for(int i = 0; i < n; i++){ u += min(a[i], s); } if(s * 3 <= u) f = 1; } if(f) cout << "Yes" << endl; else cout << "No" << endl; } }