当前位置:网站首页>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边栏推荐
- 中電資訊-信貸業務數字化轉型如何從星空到指尖?
- There is no need to authorize the automatic dream weaving collection plug-in for dream weaving collection
- PTA tiantisai l1-079 tiantisai's kindness (20 points) detailed explanation
- [Yugong series] February 2022 attack and defense world advanced question misc-84 (MySQL)
- Data collection and summary
- Network communication basic kit -- IPv4 socket structure
- Mysql-15 aggregate function
- Applet graduation project based on wechat selection voting applet graduation project opening report function reference
- AI 助力藝術設計抄襲檢索新突破!劉芳教授團隊論文被多媒體頂級會議ACM MM錄用
- Solve the problem that the tabbar navigation at the bottom of vantui does not correspond to the page (window.loading.hash)
猜你喜欢

在尋求人類智能AI的過程中,Meta將賭注押向了自監督學習

Résumé: entropie, énergie libre, symétrie et dynamique dans le cerveau

1189. Maximum number of "balloons"

Small program graduation project based on wechat reservation small program graduation project opening report reference

WordPress collection WordPress hang up collection plug-in

LV1 previous life archives

What is the intelligent monitoring system of sewage lifting pump station and does it play a big role
![[Yugong series] February 2022 attack and defense world advanced question misc-83 (QR easy)](/img/36/e5b716f2f976eb474b673f85363dae.jpg)
[Yugong series] February 2022 attack and defense world advanced question misc-83 (QR easy)

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
随机推荐
Basic editing specifications and variables of shell script
Servlet simple verification code generation
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.
On Valentine's day, I code a programmer's exclusive Bing Dwen Dwen (including the source code for free)
String & memory function (detailed explanation)
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
Final consistency of MESI cache in CPU -- why does CPU need cache
Iclr2022 | ontoprotein: protein pre training integrated with gene ontology knowledge
false sharing
Zblog collection plug-in does not need authorization to stay away from the cracked version of zblog
A. ABC
The reasons why QT fails to connect to the database and common solutions
Sword finger offer 20 String representing numeric value
Advanced learning of MySQL -- Application -- index
Question d: Haffman coding
Node solves cross domain problems
Kiss number + close contact problem
[untitled]
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
15. System limitations and options