Watermelon
题目(https://acs.jxnu.edu.cn/problem/CF4A)描述:
One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the watermelon was weighed, and the scales showed w kilos. They rushed home, dying of thirst, and decided to divide the berry, however they faced a hard problem.

Pete and Billy are great fans of even numbers, that's why they want to divide the watermelon in such a way that each of the two parts weighs even number of kilos, at the same time it is not obligatory that the parts are equal. The boys are extremely tired and want to start their meal as soon as possible, that's why you should help them and find out, if they can divide the watermelon in the way they want. For sure, each of them should get a part of positive weight.

输入:
The first (and the only) input line contains integer number w (1 ≤ w ≤ 100) — the weight of the watermelon bought by the boys.

输出:
Print YES, if the boys can divide the watermelon into two parts, each of them weighing even number of kilos; and NO in the opposite case.

样例输入:
8
样例输出:
YES
注释:
For example, the boys can divide the watermelon into two parts of 2 and 6 kilos respectively (another variant — two parts of 4 and 4 kilos).

翻译:
在炎热的夏天Pete和他的朋友Billy决定去买一个西瓜。他们按他们的意愿买了一个最大最成熟的。西瓜放在电子秤上称重显示w千克。他们跑回家,十分口渴,决定切开西瓜,但他们遇到一个艰难的问题。

Pete和Billy都是偶数的狂热粉丝,他们打算用如此的方法分西瓜:每两半重偶数千克,同时不要求两半是一样的。他们十分的累以至于他们想尽可能快的吃到西瓜,那就是为什么你应该帮助他们找到是否可以按这样的方式分西瓜。当然他们两个得到西瓜的重量要为正数。

输入:
输入共一行,包含一个整数w(1 ≤ w ≤ 100) 。表示西瓜的重量

输出:
如果他们能把这个西瓜分成两半有偶数重量的西瓜则输出YES,否则输出NO。

样例输入:
8
样例输出:
YES
注释:
例如,他们可以把这个西瓜分成2千克和6千克的两部分(也可以分成两个4千克的)。

2022.01.26翻译Watermelon相关推荐

  1. 小学奥数 7657 连乘积末尾0的个数-2022.01.26

    http://noi.openjudge.cn/math/7657/ /* 小学奥数 7657 连乘积末尾0的个数-2022.01.26 http://noi.openjudge.cn/math/76 ...

  2. 2022.01.19翻译Ancient Berland Circus

    Ancient Berland Circus 题目(https://acs.jxnu.edu.cn/problem/CF1C)描述: Nowadays all circuses in Berland ...

  3. 2022.01.02翻译Winner

    Winner 题目(https://acs.jxnu.edu.cn/problem/CF2A)描述: The winner of the card game popular in Berland &q ...

  4. 《安富莱嵌入式周报》第249期:2022.01.17--2022.01.23

    往期周报汇总地址:嵌入式周报 - uCOS & uCGUI & emWin & embOS & TouchGFX & ThreadX - 硬汉嵌入式论坛 - P ...

  5. Hibiscus的脑机接口学习周报(2022/12/26~2022/1/1)

    2022/12/26(星期一) 在学习使用python mne库读取.set类型数据时,遇到了类似如下报错:buffer is too small (来源于Python读取.set格式的脑电数据出现b ...

  6. 2022.06.26 华为od机试真题

    华为od机试真题 1.最长连续子串 2.正方形数量 3.二叉树层次遍历(不会做) 1.最长连续子串 有N个正整数组成的一个序列给定一个整数sum求长度最长的的连续子序列使他们的和等于sum返回次子序列 ...

  7. 2022/7/26华为机试,Q2,上机迷迷糊糊的,搞完突然醒悟,自抱自泣!三道题附带答案

    21:52 2022/7/26华为机试三道题附带答案 备注:未ac,华为不难,难的是个人很难进入答题状态! 第一道 给定一个字符串,是工作记录的日志时间,时间为四段格式,AA:BB:CC:DDD 其中 ...

  8. 个人学习OpenCV开源机器视觉准备如下2022.11.26

    个人学习OpenCV开源机器视觉准备如下2022.11.26: 我学AI,先安装VS,这里安装了VS2022专业版 再下载OpenCV的(2022-06-12)opencv-4.6.0-vc14_vc ...

  9. 洛谷 刷题 深基部分题解(python版)-2022.01.29

    P5703 [深基2.例5]苹果采购(python3实现) https://blog.csdn.net/dllglvzhenfeng/article/details/122690555 P5703 [ ...

最新文章

  1. 如何把Windows安装的所有打印机列出来
  2. Java HotSpot VM 命令行参数【官方版】
  3. 第4章javascript变量、作用域和内存回收
  4. 浅入浅出webpack
  5. day 58 关于bootstrap
  6. 构建自己的C/C++插件开发框架
  7. 织梦配置多个mysql_一台机器,多个mysqld服务
  8. 【一雪前耻!】两种方法判断大小端模式
  9. NOIP 2014 联合权值
  10. linux 脚本 提示编辑器,javascript – 带脚本的文本编辑器…适用于Linux
  11. Java快速入门学习笔记8 | Java语言中的数组
  12. mysql 序列化存储_如何将类序列化并直接存储入数据库
  13. java持久层用文件_Java持久层框架MyBatis简单实例
  14. 17.3.10--关于C元的变量类型所占字节问题和类型转化
  15. 《机器学习Python实践》第7章——数据可视化
  16. 前端工作汇报PPT技巧
  17. Linux中VI / VIM 常用操作练习
  18. DVWA安装教程(Linux)
  19. debian or ubuntu下 anjuta配置
  20. matlab 矩阵一致性检验,层次分析法判断矩阵求权值以及一致性检验程序.doc

热门文章

  1. 语雀、在线文档与知识库的陈年往事
  2. mysql的my.ini常用配置
  3. PCL入门系列 —— StatisticalOutlierRemoval 点云统计滤波
  4. 记——通过点击表头弹出筛选选项列表,点击进行数据筛选
  5. 咩小饬的造轮子之路(彩票篇)
  6. jquery遍历json数组
  7. 低风险整体式微服务演进第三部分
  8. 作文以记之 ~ 完全平方数
  9. matlab求周期信号频谱,Matlab在周期信号分解及频谱中的应用
  10. Python语言练习