分西瓜
题解如下
难点就在于——西瓜分成的份数不能等于0。是0就得输出"NO, you can’t divide the watermelon into two even parts."
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin>>a;
if(a>2&&a%2==0) cout<<"YES, you can divide the watermelon into two even parts.";
else cout<<"NO, you can't divide the watermelon into two even parts.";
return 0;
}