Algorithm
problem Link : https://www.codechef.com/problems/MINHEIGHT
Problem
Chef's son wants to go on a roller coaster ride. The height of Chef's son is inches while the minimum height required to go on the ride is inches. Determine whether he can go on the ride or not.
Input Format
- The first line contains a single integer - the number of test cases. Then the test cases follow.
- The first and only line of each test case contains two integers and - 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)
Constraints
Sample 1:
4 15 20 50 48 32 32 38 39
NO YES YES NO
Explanation:
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.
Code Examples
AdvertisementsDemonstration
CodeChef solution MY1STCONTEST - My very 1st contest! Codechef solution in C,C++