Zacob The Batsman!!

It’s known that Zacob is a reliable batsman of LU CSE Cricket Team. Also as long as he is on the cre…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

#include <bits/stdc++.h>
using namespace std;

int main()
{
long long n;
int t;cin>>t;while(t–) {
cin>>n;
if(!(n%2)&&n>2)
cout<<“Zacob Zacob!”<<endl;
else cout<<“Sorry Zacob!”<<endl;
}

I think this code should also pass TC.
When i wrote n!=2 it passed. Then why n>2 failed?
Can i know the 2nd testcase?

What if c==0?
Think it

1 Like