考虑全面,平分为偶数,2不行

#include<iostream>
using namespace std;
int main()
{
    int a;
    cin>>a;
    if(a!=2&amp;&amp;a%2==0)
        cout<<&quot;YES, you can divide the watermelon into two even parts.&quot;<<endl;
    else 
        cout<<&quot;NO, you can't divide the watermelon into two even parts.&quot;<<endl;
    return 0;
}
a
全部评论

相关推荐

07-22 13:50
门头沟学院 Java
仁者伍敌:其实能找到就很好了,当然收支能抵
点赞 评论 收藏
分享
码农索隆:想看offer细节
点赞 评论 收藏
分享
06-23 11:28
门头沟学院 Java
牛客91966197...:也有可能是点拒绝的时候自动弹的话术
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务