吃瓜群众AC代码,仅供参考,严禁转载
吃瓜群众
http://www.nowcoder.com/questionTerminal/0831c948717b4884a63e40116e9556b4
#include <cstdio>
int main() {
int weight;
scanf("%d", &weight);
if (weight & 1 || weight <= 2) // 按位与可以判断奇偶,至于怎样判断,请看我的博客
puts("NO, you can't divide the watermelon into two even parts.");
else
puts("YES, you can divide the watermelon into two even parts.");
return 0;
}