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