class Solution: def earliestTime(self, tasks: List[List[int]]) -> int: res = math.inf for start, dur in tasks: res = min(res, start + dur) return res