My issue
help me find error in my code
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t;
cin>>t;
while(t--)
{
int n,a,b;
cin>>n>>a>>b;
while(n--)
{
if(n%2!=0)
{
a--;
}
else
{
b--;
}
if(a==0 || a<b)
{
cout<<"Alice\n";
break;
}
else if(b==0 || a>b)
{
cout<<"Bob\n";
break;
}
}
}
}
Problem Link: Yet Another Alice Bob Game Practice Coding Problem - CodeChef