kolychestiy

Untitled

Dec 23rd, 2021 (edited)
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. a = [0] * 9999
  2.  
  3. n = int(input())
  4. while n:
  5.     n -= 1
  6.     k, l = map(int, input().replace(':', '').split())
  7.     a[k] += 1
  8.     a[l + 1] -= 1
  9.  
  10. m = c = 0
  11. for e in a:
  12.     c += e
  13.     m = max(m, c)
  14.  
  15. print(m)
Add Comment
Please, Sign In to add comment