题解 | 牛牛是否被叫家长
牛牛是否被叫家长
https://www.nowcoder.com/practice/cc896ffd90d34c7faa318b04e87adf11
import java.util.Scanner;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (in.hasNextInt()) {
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
if((a+b+c)/3 >= 60){
System.out.println("NO");
}
else{
System.out.println("YES");
}
}
}
}
不需要考虑小数


查看13道真题和解析