Streamer Takahashi ABC 414 Completed

Problem 2 of 50

Easy

lightbulb What 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

code Python Editor
Loading Python...
Test Results
tips_and_updates 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