PROBLEM LINK:
Contest Division 1
Contest Division 2
Contest Division 3
Contest Division 4
Setter: Jeevan Jyot Singh
Tester: Jakub Safin, Satyam
Editorialist: Pratiyush Mishra
DIFFICULTY:
285
PREREQUISITES:
None
PROBLEM:
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.
EXPLANATION:
Here we are given the minimum height to go on the ride is H inches. Thus we just need to check if Chef’s son has a height greater than or equal to H inches.
Thus if X is greater than or equal to H then he can go on a ride else he can’t.
TIME COMPLEXITY:
O(1) for each test case.
SOLUTION:
Editorialist’s Solution
Setter’s Solution
Tester1’s Solution
Tester2’s Solution