Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def tasks(A):
- n = len(A)
- score = 0
- last = -1
- A.sort(key = sortSec)
- for i in range(n):
- if (A[i][0] >= last):
- score += 1
- last = A[i][1]
- return score
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement