#include #include using namespace std; typedef long long ll; int main() { int t; cin >> t; while(t--){ int n; cin >> n; ll a[200005]; ll s = 0; for(int i = 0; i < n; i++){ cin >> a[i]; s += a[i]; } sort(a, a + n, greater()); if(s % 3 || a[0] * 3 > s) cout << "No" << endl; else cout << "Yes" << endl; } }