原本是80%,但想到了2也是偶数,但不能做到要求!
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
if(n%2==0&&n>2)
printf("YES, you can divide the watermelon into two even parts.");
else
printf("NO, you can't divide the watermelon into two even parts.");
}
int main()
{
int n;
scanf("%d",&n);
if(n%2==0&&n>2)
printf("YES, you can divide the watermelon into two even parts.");
else
printf("NO, you can't divide the watermelon into two even parts.");
}