当前位置:网站首页>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边栏推荐
- Mysql to PostgreSQL real-time data synchronization practice sharing
- Remember another interview trip to Ali, which ends on three sides
- Yyds dry goods inventory hand-in-hand teach you the development of Tiktok series video batch Downloader
- Résumé: entropie, énergie libre, symétrie et dynamique dans le cerveau
- Neo4j learning notes
- VRRP+BFD
- [Yugong series] February 2022 attack and defense world advanced question misc-84 (MySQL)
- Sword finger offer 14- I. cut rope
- MySQL advanced (Advanced) SQL statement (I)
- Create real-time video chat in unity3d
猜你喜欢

MySQL advanced (Advanced) SQL statement (I)

Yyds dry goods inventory override and virtual of classes in C

A fan summed up so many interview questions for you. There is always one you need!

AI 助力藝術設計抄襲檢索新突破!劉芳教授團隊論文被多媒體頂級會議ACM MM錄用

false sharing

Network communication basic kit -- IPv4 socket structure

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

96% of the collected traffic is prevented by bubble mart of cloud hosting

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

WP collection plug-in free WordPress collection hang up plug-in
随机推荐
I stepped on a foundation pit today
Take you to master the formatter of visual studio code
Intel's new GPU patent shows that its graphics card products will use MCM Packaging Technology
Write the first CUDA program
A. ABC
Neo4j learning notes
60 year old people buy medical insurance and recommend a better product
CSCI 2134
Problems and solutions of several concurrent scenarios of redis
The requests module uses
Li Chuang EDA learning notes 13: electrical network for drawing schematic diagram
Keepalived set the master not to recapture the VIP after fault recovery (it is invalid to solve nopreempt)
Unity controls the selection of the previous and next characters
Override and virtual of classes in C #
What is the intelligent monitoring system of sewage lifting pump station and does it play a big role
Network communication basic kit -- IPv4 socket structure
AI 助力藝術設計抄襲檢索新突破!劉芳教授團隊論文被多媒體頂級會議ACM MM錄用
LV1 Roche limit
On Valentine's day, I code a programmer's exclusive Bing Dwen Dwen (including the source code for free)
Advanced learning of MySQL -- Application -- storage engine