题解|c++ & python
2025-07-23 13:33:19
发布于:上海
0阅读
0回复
0点赞
c++解法
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
if(n % 2 == 0 && n >= 4)cout << "YES";
else cout << "NO";
return 0;
}
python解法
a = int(input())
if a % 2 == 0 and a >= 4:
print("YES")
else:
print("NO")
这里空空如也
有帮助,赞一个