#include using namespace std; int main(){ int t; cin>>t; while(t--){ int len, i, j, k, sum1 = 0, sum2 =0, temp = 0; int a[1010]; cin>>len; for(i = 0; i < len;i++) cin>>a[i]; k = len - 1 ; for(i = 0; i < len; i++,k--){ if(i%2==0) sum1 +=a[i]; else sum2 += a[i]; if(a[i] == a[k]) temp++; } if(sum1==sum2 && temp!=len) cout<<"Yes"<