题解|c++ & python
2025-07-23 13:33:19
发布于:上海
112阅读
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")
全部评论 1
a = int(input())
if (a / 2) % 2 == 0:
print('YES')
else:
print('NO')2026-09-06 来自 上海
0考古
嘿嘿2026-09-06 来自 上海
0









有帮助,赞一个