题解 | #小乐乐算多少人被请家长#
小乐乐算多少人被请家长
https://www.nowcoder.com/practice/1654083e09d2432aa24b151d36309155
#include <stdio.h> int main() { int num,count=0; scanf("%d",&num); int a, b,c; while (scanf("%d %d %d\n", &a, &b, &c) != EOF) { // 注意 while 处理多个 case // 64 位输出请用 printf("%lld") to if((a+b+c)/3<60) { count++; } } printf("%d\n", count++); return 0; }