当前位置:网站首页>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
边栏推荐
- SQL statement
- PTA tiantisai l1-079 tiantisai's kindness (20 points) detailed explanation
- Sword finger offer 14- I. cut rope
- Intel's new GPU patent shows that its graphics card products will use MCM Packaging Technology
- String: LV1 eat hot pot
- Node solves cross domain problems
- Global and Chinese market of small batteries 2022-2028: Research Report on technology, participants, trends, market size and share
- Neo4j learning notes
- Pytoch residual network RESNET
- Mysql to PostgreSQL real-time data synchronization practice sharing
猜你喜欢
Measurement fitting based on Halcon learning [4] measure_ arc. Hdev routine
Kiss number + close contact problem
Unspeakable Prometheus monitoring practice
1189. Maximum number of "balloons"
Résumé: entropie, énergie libre, symétrie et dynamique dans le cerveau
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"
[Yugong series] February 2022 attack and defense world advanced question misc-84 (MySQL)
Unity knapsack system (code to center and exchange items)
A brief talk on professional modeler: the prospect and professional development of 3D game modeling industry in China
MySQL workbench use
随机推荐
The boss said: whoever wants to use double to define the amount of goods, just pack up and go
Global and Chinese market of thin film deposition systems 2022-2028: Research Report on technology, participants, trends, market size and share
VRRP+BFD
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
Idea if a class cannot be found, it will be red
Global and Chinese market of handheld melanoma scanners 2022-2028: Research Report on technology, participants, trends, market size and share
Final consistency of MESI cache in CPU -- why does CPU need cache
Data collection and summary
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.
C language black Technology: Archimedes spiral! Novel, interesting, advanced~
Chain ide -- the infrastructure of the metauniverse
PMP daily three questions (February 14, 2022)
ZABBIX API batch delete a template of the host
In yolov5, denselayer is used to replace focus, and the FPN structure is changed to bi FPN
Global and Chinese markets for electroencephalogram (EEG) devices 2022-2028: Research Report on technology, participants, trends, market size and share
LV1 tire pressure monitoring
When tidb meets Flink: tidb efficiently enters the lake "new play" | tilaker team interview
LV1 previous life archives
Unity writes a character controller. The mouse controls the screen to shake and the mouse controls the shooting
Pytoch residual network RESNET