Streamer Takahashi
ABC 414Problem 2 of 50
EasyWhat to do
Takahashi is streaming from one hour to another. You need to find out how many of his listeners can watch the whole stream without missing any part of it.
Key Concepts
if-statements
loops
basic math
input/output
Examples
Input:
19, 22, [[17, 23], [20, 23], [19, 22], [0, 23], [12, 20]]
Output:
3
Input:
12, 13, [[0, 1], [0, 1], [0, 1]]
Output:
0
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...