Shout Everyday
ABC 367Problem 49 of 50
EasyWhat to do
Takahashi sleeps from hour `a` to hour `b` (may wrap past midnight). Determine if he is awake at hour `c`. Return 'Yes' if awake (not during sleep hours), 'No' if asleep.
Key Concepts
if-statements
basic comparisons
input and output
Examples
Input:
a = 21, b = 8, c = 14
Output:
Yes
Input:
a = 0, b = 21, c = 7
Output:
No
Tips for Beginners
- Focus on understanding the logic, not memorizing syntax
- Use print statements to debug your code
- Don't worry about input parsing - the function handles that for you
- If stuck, try writing out your solution on paper first
Python Editor
Loading Python...