Timeout
ABC 408Problem 8 of 50
EasyWhat to do
You need to check if the elder of Takahashi Village stays awake after being tapped on the shoulder a certain number of times. If the time between taps exceeds a specific limit, he will fall asleep. Your task is to find out if he stays awake until the last tap.
Key Concepts
if-statements
loops
basic math
input/output
Examples
Input:
5 10
6 11 21 22 30
Output:
Yes
Input:
2 100
1 200
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...