#include using namespace std; using ll = long long; void solve(){ int n; cin>>n; vector a(n); ll sum = 0; for(int i = 0;i>a[i]; sum += a[i]; } if(sum%3!=0){ cout<<"No\n"; return ; } ll no = sum / 3; for(int i = 0;ino){ cout<<"No\n"; return ; } } cout<<"Yes\n"; return; } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int t; cin>>t; while(t--){ solve(); } }