题解 | #吃瓜群众#

吃瓜群众

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

相关推荐

04-21 20:49
长沙学院 Java
wu970:标准北漂配置,怎么看着装修风格有点像自如的😭
点赞 评论 收藏
分享
在打卡的大老虎很想潜...:你在找实习,没啥实习经历,技术栈放前面,项目多就分两页写,太紧凑了,项目你最多写两个,讲清楚就行,项目背景。用到的技术栈、亮点、难点如何解决,人工智能进面太难了,需求少。你可以加最新大模型的东西
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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