题解 | 牛牛是否被叫家长

牛牛是否被叫家长

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");
            }
        }
    }
}

不需要考虑小数

全部评论

相关推荐

点赞 评论 收藏
分享
UtopianYou...:这个简历排版真的不太行哦,去找免费的或者花点小钱,把排版弄整齐一点吧,看着舒服。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务