题解 | #小乐乐算多少人被请家长#

小乐乐算多少人被请家长

https://www.nowcoder.com/practice/1654083e09d2432aa24b151d36309155

#include <stdio.h>

int main() {
    
    int peopleNum = 0;
    scanf("%d",&peopleNum);

    int Chinese, math, English;
    int result = 0;
    for (int i = 0; i < peopleNum; i++)
    {
        scanf("%d %d %d",&Chinese,&math,&English);
        int averageScores = (Chinese + math + English) / 3;
        if (averageScores < 60)
        {
            result++;
        }
    }

    printf("%d",result);
    return 0;
}

全部评论

相关推荐

Twilight_m...:经典我朋友XXXX起手,这是那种经典的不知道目前行情搁那儿胡编乱造瞎指导的中年人,不用理这种**
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务