题解 | #吃瓜群众#

吃瓜群众

https://ac.nowcoder.com/acm/problem/22014

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int weight = 0;
        while (scanner.hasNext()) {
            weight = scanner.nextInt();
        }
        if (weight % 2 == 0 && weight > 2) {
            System.out.println("YES, you can divide the watermelon into two even parts.");
            
        } else {
            System.out.println("NO, you can't divide the watermelon into two even parts.");
        }
    }
}
全部评论

相关推荐

05-11 20:45
已编辑
西南石油大学 Java
程序员小白条:中小厂可以,但主要28届的话,一般都得大三上了,暑假的话机会比较少,全国投或许可以
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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