本文共 275 字,大约阅读时间需要 1 分钟。
简单常规题目
class Solution: def busyStudent(self, startTime: List[int], endTime: List[int], queryTime: int) -> int: num = 0 for i in range(len(endTime)): if endTime[i]>= queryTime and startTime[i]<= queryTime: num+=1 return num
转载地址:http://dndqb.baihongyu.com/