题解 | #小乐乐算多少人被请家长#
小乐乐算多少人被请家长
https://www.nowcoder.com/practice/1654083e09d2432aa24b151d36309155
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int i = 0, n = 0, a = 0, b = 0, c = 0, sum = 0, count = 0; scanf("%d", &n);//输入一个数n,代表小乐乐的班级中有n个同学。 for (i = 0; i < n; i++) { scanf("%d %d %d", &a, &b, &c); sum = a + b + c; if (sum / 3 < 60) { count++; } } printf("%d", count); return 0; }