当前位置:网站首页>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边栏推荐
- Network communication basic kit -- IPv4 socket structure
- A. ABC
- LV1 Roche limit
- Small program graduation project based on wechat examination small program graduation project opening report function reference
- Latex tips slash \backslash
- The boss said: whoever wants to use double to define the amount of goods, just pack up and go
- The difference between int (1) and int (10)
- A. Div. 7
- Optimization theory: definition of convex function + generalized convex function
- SQL statement
猜你喜欢

What is the intelligent monitoring system of sewage lifting pump station and does it play a big role

Ai aide à la recherche de plagiat dans le design artistique! L'équipe du professeur Liu Fang a été embauchée par ACM mm, une conférence multimédia de haut niveau.

Applet graduation design is based on wechat course appointment registration. Applet graduation design opening report function reference

Node write API

Mysql-15 aggregate function

Kiss number + close contact problem

Node solves cross domain problems

Yyds dry goods inventory override and virtual of classes in C

Lichuang EDA learning notes 14: PCB board canvas settings

Advanced learning of MySQL -- Application -- storage engine
随机推荐
Unity writes a character controller. The mouse controls the screen to shake and the mouse controls the shooting
Portapack application development tutorial (XVII) nRF24L01 launch C
The latest analysis of hoisting machinery command in 2022 and free examination questions of hoisting machinery command
Will the memory of ParticleSystem be affected by maxparticles
Applet graduation design is based on wechat course appointment registration. Applet graduation design opening report function reference
Unity controls the selection of the previous and next characters
String & memory function (detailed explanation)
Create template profile
STM32 key content
MySQL workbench use
Applet graduation project is based on wechat classroom laboratory reservation applet graduation project opening report function reference
C language black Technology: Archimedes spiral! Novel, interesting, advanced~
ZABBIX API batch delete a template of the host
Buuctf QR code
[software implementation series] software implementation interview questions with SQL joint query diagram
Latex tips slash \backslash
Summarize the past to motivate yourself to move on
What is the student party's Bluetooth headset recommendation? Student party easy to use Bluetooth headset recommended
長文綜述:大腦中的熵、自由能、對稱性和動力學
Save Private Ryan - map building + voltage dp+deque+ shortest circuit