Help me in solving TALLER problem

My issue

explain

My code

#include <iostream>
using namespace std;

int main() {
    int t;
    cin>>t;
    while(t--){
        int x,y;
        cin>>x>>y;
        if(x<y&&x!=y){
            cout<<"B\n";
        }else{
            cout<<"A";
        }
    }
	return 0;
}

Problem Link: Who is taller! Practice Coding Problem - CodeChef

@yeshwantreddy
print \n after printing A

1 Like