int busyStudent(int* startTime, int startTimeSize, int* endTime, int endTimeSize, int queryTime){ int i, cnt = 0; for(i=0;i<startTimeSize;i++) cnt += queryTime >= startTime[i] && queryTime <= endTime[i]; return cnt; }
int busyStudent(int* startTime, int startTimeSize, int* endTime, int endTimeSize, int queryTime){ int i, cnt = 0; for(i=0;i<startTimeSize;i++) cnt += queryTime >= startTime[i] && queryTime <= endTime[i]; return cnt; }