#include
#include<bits/stdc++.h>
using namespace std;
int main () {
int n;
cin>>n;
while(n–)
{
long long arr[2n];
long long count=0,count1=0;
for(int i=0;i<2n;i++)
{
cin>>arr[i];
}
for(int i=0;i<2n;i++)
{
if(arr[i]%2==0)
count++;
else
count1++;
}
cout<<(count1count)%1000000007<<endl;
}
return 0;
}
Why am i getting tle for shoe problem?
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.