网易笔试第一题 AC
#include<iostream>
using namespace std;
int main(){
int t;
cin>>t;
for(int i = 0; i < t; i++){
int n;
int tabLength;
cin>>n;
tabLength = n;
int all = 0;
int *A = new int[n];
for(int j = 0; j < n; j++){
cin>>A[j];
if(A[j] % 4 == 0){
all++;
}
if(A[j] % 2 == 0 && A[j] % 4 != 0){
tabLength--;
}
}
if(all * 2 >= tabLength){
cout<<"Yes";
}
else{
cout<<"No";
}
if(i != t - 1){
cout<<endl;
}
}
}
#网易#