I’m getting WA for my code and it is giving the correct output for all the possible test cases.
this is my code:
(can someone help me understand why is it marked as WA?)
https://www.codechef.com/viewsolution/58318792
#include
using namespace std;
int main() {
int t,a,b,count;
cin>>t;
while(t–)
{
cin>>a>>b;
count=0;
while(a>0 && b>0)
{
a-=2;
b-=1;
count++;
}
cout<<count<<‘\n’;
}
return 0;
}