竞赛讨论区 > 原本是80%,但想到了2也是偶数,但不能做到要求!
头像
Dream_coding
发布于 2019-05-31 10:58
+ 关注

原本是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.");
}

全部评论

(1) 回帖
加载中...
话题 回帖

本文相关内容

等你来战

查看全部

热门推荐