22014 吃瓜群众

吃瓜群众

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a;
    cin>>a;
    if(a%2||a==2) 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;
}

二星就开始有数学了...我竟然忘了2是不符合的,一定是因为被数学吓到了哼
所以别害怕,算法和代码差不多难的

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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