[Solution] Who is taller! solution codechef

Who is taller! solution codechef – Alice and Bob were having an argument about which of them is taller than the other. Charlie got irritated by the argument, and decided to settle the matter once and for all.

[Solution] Who is taller! solution codechef

Charlie measured the heights of Alice and Bob, and got to know that Alice’s height is XX centimeters and Bob’s height is YY centimeters. Help Charlie decide who is taller.

It is guaranteed that XYX≠Y.

Input Format

  • The first line of input will contain an integer TT — the number of test cases. The description of TT test cases follows.
  • The first and only line of each test case contains two integers XX and YY, as described in the problem statement.

Output Format

For each test case, output on a new line 𝙰A if Alice is taller than Bob, else output 𝙱B. The output is case insensitive, i.e, both 𝙰A and 𝚊a will be accepted as correct answers when Alice is taller.

[Solution] Who is taller! solution codechef

  • 1T10001≤T≤1000
  • 100X,Y200100≤X,Y≤200
  • XYX≠Y

Sample Input 1 

2
150 160
160 150

Sample Output 1 

B
A

Who is taller! solution codechef Explanation

Test case 11: In this case, 150<160150<160 so Bob is taller than Alice.

Test case 22: In this case, 160>150160>150 so Alice is taller than Bob.

For Solution

Click here

Leave a Comment