当前位置:网站首页>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
边栏推荐
- Buuctf QR code
- Unspeakable Prometheus monitoring practice
- On Valentine's day, I code a programmer's exclusive Bing Dwen Dwen (including the source code for free)
- Unity controls the selection of the previous and next characters
- Node write API
- I stepped on a foundation pit today
- Unity knapsack system (code to center and exchange items)
- Unity writes a character controller. The mouse controls the screen to shake and the mouse controls the shooting
- 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
- The first spring of the new year | a full set of property management application templates are presented, and Bi construction is "out of the box"
猜你喜欢
7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages
Johnson–Lindenstrauss Lemma
Basic editing specifications and variables of shell script
Introduction to graphics: graphic painting (I)
Bacteriostatic circle scanning correction template
C language black Technology: Archimedes spiral! Novel, interesting, advanced~
3D game modeling is in full swing. Are you still confused about the future?
Record a problem that soft deletion fails due to warehouse level error
Node write API
What are the conditions for the opening of Tiktok live broadcast preview?
随机推荐
Example 073 square sum value judgment programming requires the input of a and B, if a ²+ b ² If the result of is greater than 100, a is output ²+ b ² Value, otherwise output the result of a + B.
A. ABC
Global and Chinese market of contour projectors 2022-2028: Research Report on technology, participants, trends, market size and share
Will the memory of ParticleSystem be affected by maxparticles
在尋求人類智能AI的過程中,Meta將賭注押向了自監督學習
Override and virtual of classes in C #
Database concept and installation
Career development direction
Create real-time video chat in unity3d
C learning notes: C foundation - Language & characteristics interpretation
[untitled]
The requests module uses
Network byte order
Record a problem that soft deletion fails due to warehouse level error
16. System and process information
When tidb meets Flink: tidb efficiently enters the lake "new play" | tilaker team interview
LV1 tire pressure monitoring
FRP intranet penetration
Small program graduation design is based on wechat order takeout small program graduation design opening report function reference
Applet graduation design is based on wechat course appointment registration. Applet graduation design opening report function reference