Dyd's Blog

He who has a strong enough why can bear almost any how.

CF4A Watermelon

CF $800$ 的水题

Watermelon

蒻蒟发现自己刷了好久luogu了,偶尔想换换口味,于是看了道CF的题

毕竟(不通过luogu做CF)是第一次,所以做一道难度 $800$ 的try one try,在思考了整整 $1145141919810.1415926535…$ 秒后,终于做出来了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <bits/stdc++.h>
#define LL long long
#define STC static
using namespace std;
const int N = 1;

int main()
{
int w;
scanf("%d", &w);
if ((w < 4) || (w & 1))
puts("NO");
else
puts("YES");
return 0;
}