Title: Cricket World Cup Qualifier - Simple Solution
Problem Understanding:
We are given an integer X which represents the points scored by a team.
If the team scores 12 or more points, it qualifies for the next stage.
Otherwise, it does not qualify.
Approach:
This is a simple conditional problem.
We just need to check whether X is greater than or equal to 12.
- If X >= 12 β print βYesβ
- Else β print βNoβ
Code (Python):
X = int(input())
if X >= 12:
print(βYesβ)
else:
print(βNoβ)
Example:
Input: 3
Output: No
Reason: 3 < 12, so not qualified
Input: 17
Output: Yes
Reason: 17 >= 12, so qualified
Time Complexity:
O(1) (constant time)
Space Complexity:
O(1)