当前位置:网站首页>Contest3145 - the 37th game of 2021 freshman individual training match_ E: Eat watermelon
Contest3145 - the 37th game of 2021 freshman individual training match_ E: Eat watermelon
2022-07-04 02:34:00 【This question AC sleep again】
//
problem E: Eat watermelon
The time limit : 1.000 Sec Memory limit : 128 MB
Title Description
The hot summer comes so fast , The little cat and the programming rabbit decided to buy a big and sweet watermelon . But floret and programming rabbit are two very strange animals , Are even fans , They want to cut the watermelon in half , The weight of each part is 2 Multiple of kg ( Greater than 0). Of course, there are programming rabbits , They soon decided which melon to buy . Children, do you know whether to buy this melon ?
Input
The first line has only one positive integer , It means the weight of watermelon w( The unit is kilogram ,1<=w<=100).
Output
If you can meet the requirements , It outputs YES, Otherwise output NO.
The sample input Copy
8
Sample output Copy
YES
Tips
8 Can be divided into 2 and 6, perhaps 4 and 4.
//
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
while( ~scanf("%d",&n) )
{
if( (n&1)==0 )
{
if( n==2 ) printf("NO\n");
else printf("YES\n");
}
else printf("NO\n");
}
return 0;
}
//
find:
01 Special data n==2
边栏推荐
- Hamburg University of Technology (tuhh) | intelligent problem solving as integrated hierarchical reinforcement learning
- Unity knapsack system (code to center and exchange items)
- 2022 R2 mobile pressure vessel filling certificate examination and R2 mobile pressure vessel filling simulation examination questions
- Lichuang EDA learning notes 14: PCB board canvas settings
- Keep an IT training diary 055- moral bitch
- Leetcode 110 balanced binary tree
- Site favorites
- A. Min Max Swap
- LV1 previous life archives
- Redis transaction
猜你喜欢
LV1 tire pressure monitoring
Redis transaction
When tidb meets Flink: tidb efficiently enters the lake "new play" | tilaker team interview
Node solves cross domain problems
Small program graduation project based on wechat examination small program graduation project opening report function reference
A fan summed up so many interview questions for you. There is always one you need!
Gee import SHP data - crop image
Talking about custom conditions and handling errors in MySQL Foundation
Bacteriostatic circle scanning correction template
Network communication basic kit -- IPv4 socket structure
随机推荐
LV1 previous life archives
Take you to master the formatter of visual studio code
Global and Chinese market of contour projectors 2022-2028: Research Report on technology, participants, trends, market size and share
1189. Maximum number of "balloons"
Latex tips slash \backslash
中電資訊-信貸業務數字化轉型如何從星空到指尖?
Example 072 calculation of salary it is known that the base salary of an employee of a company is 500 yuan. The amount of software sold by the employee and the Commission method are as follows: Sales
Sword finger offer 20 String representing numeric value
Amélioration de l'efficacité de la requête 10 fois! 3 solutions d'optimisation pour résoudre le problème de pagination profonde MySQL
[untitled] the relationship between the metauniverse and digital collections
60 year old people buy medical insurance and recommend a better product
Network byte order
What is the intelligent monitoring system of sewage lifting pump station and does it play a big role
A brief talk on professional modeler: the prospect and professional development of 3D game modeling industry in China
96% of the collected traffic is prevented by bubble mart of cloud hosting
Bacteriostatic circle scanning correction template
Small program graduation project based on wechat video broadcast small program graduation project opening report function reference
MySQL workbench use
12. Gettimeofday() and time()
Global and Chinese markets of advanced X-ray inspection system (Axi) in PCB 2022-2028: Research Report on technology, participants, trends, market size and share