# [Solution] Roller Coaster solution codechef

Roller Coaster solution codechef – Chef’s son wants to go on a roller coaster ride. The height of Chef’s son is X inches while the minimum height required to go on the ride is H inches. Determine whether he can go on the ride or not.

## [Solution] Roller Coaster solution codechef

Input Format

The first line contains a single integer T – the number of test cases. Then the test cases follow.
The first and only line of each test case contains two integers X and H – the height of Chef’s son and the minimum height required for the ride respectively.

Output Format

For each test case, output in a single line, YES if Chef’s son can go on the ride. Otherwise, output NO.

You may print each character of YES and NO in uppercase or lowercase (for example, yes, yEs, Yes will be considered identical)

1≤T≤1000
1≤X,H≤100

Sample Input 1

4
15 20
50 48
32 32
38 39

Sample Output 1

NO
YES
YES
NO

## Roller Coaster solution codechef

Test case 1: Chef’s son can not go on the ride as his height < the minimum required height.

Test case 2: Chef’s son can go on the ride as his height ≥ the minimum required height.

Test case 3: Chef’s son can go on the ride as his height ≥ the minimum required height.

Test case 4: Chef’s son can not go on the ride as his height < the minimum required height.