HDU 6075 Questionnaire
Questionnaire
2017 Multi-University Training Contest - Team 3
#include<cstdio>
#include<cmath>
using namespace std;
long long a[100010];
int main()
{
int T;
scanf("%d",&T);
while(T--)
{
int o=0;
int n;
scanf("%d",&n);
for(int i=0; i<n; i++)
{
scanf("%lld",&a[i]);
if(a[i]%2==0)
{
o++;
}
}
if(o>=n/2)
{
printf("2 0\n");
}
else
{
printf("2 1\n");
}
}
return 0;
}