We Are Discuss About CODECHEF SOLUTION
Just One More Episode CodeChef Solution
Just One More Episode CodeChef Solution
Problem
Chef has to attend an exam that starts in � minutes, but of course, watching shows takes priority.
Every episode of the show that Chef is watching, isĀ 24Ā minutes long.
If he starts watching a new episode now, will he finish watching itĀ strictly beforeĀ the exam starts?
Input Format
- The first line of input will contain a single integerĀ ļæ½, denoting the number of test cases.
- Each test case consists of one line of input, containing a single integer � ā the amount of time from now at which Chef’s exam starts.
Output Format
For each test case, output on a new line the answer āĀ YES
Ā if Chef will finish his episode before the exam starts, andĀ NO
Ā otherwise.
Each character of the output may be printed in either lowercase or uppercase, i.e, the stringĀ Yes
,Ā YES
,Ā yes
, YeS` will all be treated as equivalent.
Constraints
- 1ā¤ļæ½ā¤100
- 1ā¤ļæ½ā¤100
Sample 1:
Input
Output
4 30 23 60 24
Yes No Yes No
Explanation:
Test caseĀ 1:Ā Chef hasĀ 30Ā minutes of free time, which is easily enough to finish watching aĀ 24-minute episode. Hence, the answer isĀ Yes
.
Test caseĀ 2:Ā Chef hasĀ 23Ā minutes of free time, which is not enough to finish watching aĀ 24-minute episode. Hence, the answer isĀ No
.
Test caseĀ 3:Ā Chef hasĀ 60Ā minutes of free time, which is easily enough to finish watching aĀ 24-minute episode. Hence, the answer isĀ Yes
.
Test caseĀ 4:Ā Chef hasĀ 24Ā minutes of free time. He will finish watching the episode exactly when the exam starts, and notĀ strictlyĀ before it. Hence, the answer isĀ No
.
SOLUTION
Here Discuss About Solve Just One More Episode CodeChef Solution
SOLUTION
Just One More Episode CodeChef Solution
SOLUTION
Yhaa You have done it but next? if YOU Want to Get Others Please Visit HereĀ ScishowEngineerĀ Ā ThenĀ Follow US HEREĀ andĀ Join Telegram.
If You Want To Learn Something New Then Visit OurĀ Official Channel YOUTUBE