题解 | #吃瓜群众#

吃瓜群众

https://ac.nowcoder.com/acm/problem/22014

#include <iostream>
using namespace std;
int main()

{
    int weight;
    cin>>weight;
    if (weight==2||weight%2!=0)
    {
        cout<<"NO, you can't divide the watermelon into two even parts.";
    }
   else
    {
        cout<<"YES, you can divide the watermelon into two even parts.";
    }
    return 0;
}

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务