llllmz

导航

2798. 满足目标工作时长的员工数目c

int numberOfEmployeesWhoMetTarget(int* hours, int hoursSize, int target){
    int count=0;
    for(int i=0;i<hoursSize;i++){
        if(hours[i] >= target) count++;
    }
    return count;
}

 

posted on 2024-03-22 10:24  神奇的萝卜丝  阅读(32)  评论(0)    收藏  举报