Title: Cricket Wprld Cup Qualifier

Title: Cricket World Cup Qualifier - Simple Solution

:small_blue_diamond: 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.

:small_blue_diamond: 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”

:small_blue_diamond: Code (Python):
X = int(input())

if X >= 12:
print(β€œYes”)
else:
print(β€œNo”)

:small_blue_diamond: Example:
Input: 3
Output: No
Reason: 3 < 12, so not qualified

Input: 17
Output: Yes
Reason: 17 >= 12, so qualified

:small_blue_diamond: Time Complexity:
O(1) (constant time)

:small_blue_diamond: Space Complexity:
O(1)