题解 | #吃瓜群众#

吃瓜群众

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.");
        }
    }
}
全部评论

相关推荐

华为 ai软件开发 薪资20k x (14-16),职级13A,5%公积金,c/cpp
点赞 评论 收藏
分享
专心打鱼:互联网搬运工,贴子都要偷
点赞 评论 收藏
分享
感性的干饭人在线蹲牛友:🐮 应该是在嘉定这边叭,禾赛大楼挺好看的
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务