Responsive Ads Here

Sunday, 28 May 2017

Team Formation For Snackdown

problem id:--https://www.codechef.com/SNCKPA17/problems/TEAMFORM


code:--

#include<iostream>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n,m;
cin>>n>>m;
for(int i=1;i<=m;++i)
{
int num;
cin>>num>>num;
}
string ans[]={"yes","no"};
cout<<ans[n&1]<<'\n';
}
return 0;
}

No comments:

Post a Comment