TALLER Editorial

PROBLEM LINK:

Contest Division 1
Contest Division 2
Contest Division 3
Contest Division 4

Setter: Lavish Gupta
Testers: Felipe Mota, Aryan
Editorialist: Pratiyush Mishra

DIFFICULTY:

281

PREREQUISITES:

None

PROBLEM:

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.

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

It is guaranteed that X \neq Y.

EXPLANATION:

For each test case, we just have to find out which of the height value is greater .If Alice's height is greater, then print A else if Bobs's height is greater print B.

TIME COMPLEXITY:

O(1) for each test case.

SOLUTION:

Editorialist’s Solution
Tester 1’s Solution
Tester 2’s Solution