题解 | #小乐乐算多少人被请家长#
小乐乐算多少人被请家长
https://www.nowcoder.com/practice/1654083e09d2432aa24b151d36309155
#include <stdio.h> int main() { int num; int a,b,c; int count = 0; scanf("%d",&num); float aver = 0; for(int i = 1; i<= num; i++) { scanf("%d %d %d",&a,&b,&c); aver = (a+b+c)/3.0; if(aver < 60) count++; } printf("%d\n",count); return 0; }