#include #include #include #include #include #include #include #include #include #include using ll = long long; using namespace std; int main() { ll t, n; cin >> t; for (ll i = 0; i < t; i++){ ll sum1 = 0, max1 = -1; cin >> n; vector a(n); for (ll j = 0; j < n; j++){ cin >> a[j]; sum1 += a[j]; max1 = max(max1, a[j]); } cout << ((!(sum1%3) && max1 <= sum1/3) ? "Yes" : "No") << endl; } }