题解 | #小乐乐是否被叫家长#
小乐乐是否被叫家长
http://www.nowcoder.com/practice/cc896ffd90d34c7faa318b04e87adf11
解题思路
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sin = new Scanner(System.in);
int sum = 0;
while(sin.hasNext()){
sum += sin.nextInt();
}
int avg = sum / 3;
if(avg < 60){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}