#include using namespace std; void canConstruct(vector a) { int it; int sum=0; for(std::vector::iterator it = a.begin() ; it != a.end(); it++) { sum=sum+(*it); } if(sum%3==0) { cout<<"Yes"; } else{ cout<<"No"; } // Return "Yes" or "No" denoting whether you can construct the required number. } int main() { int t; cin >> t; for(int a0 = 0; a0 < t; a0++){ int n; cin >> n; vector a(n); for(int a_i = 0; a_i < n; a_i++){ cin >> a[a_i]; } canConstruct(a); cout<