PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: jeevanjyot
Testers: mexomerf, rivalq
Editorialist: iceknight1093
DIFFICULTY:
TBD
PREREQUISITES:
None
PROBLEM:
Chef is playing a game of Ludo, where he can enter a new token into the game only if he rolls a 6 on the die.
Chef rolls an X, can he enter a new token into the game?
EXPLANATION:
It is enough to directly implement the condition given in the statement, that is:
- If X = 6, print
Yes
. - Otherwise, print
No
.
This can be checked using an if
condition.
TIME COMPLEXITY:
\mathcal{O}(1) per testcase.
CODE:
Code (Python)
for _ in range(int(input())):
x = int(input())
print('Yes' if x == 6 else 'No')