PROBLEM LINK:
Practice
Contest: Division 1
Contest: Division 2
Contest: Division 3
Contest: Division 4
Author: Jeevan Jyot Singh
Testers: Utkarsh Gupta, Hriday
Editorialist: Nishank Suresh
DIFFICULTY:
348
PREREQUISITES:
None
PROBLEM:
Chef’s temperature is X °F. A person has a fever if their temperature is strictly more than 98 °F. Does Chef have a fever?
EXPLANATION:
Do what the problem states: print “Yes” if X \gt 98 and “No” otherwise.
Checking if X \gt 98 can be done with the help of an if
condition.
TIME COMPLEXITY
\mathcal{O}(1) per test case.
CODE:
Editorialist's code (Python)
for _ in range(int(input())):
print('yes' if int(input()) > 98 else 'no')