考虑全面,平分为偶数,2不行
#include<iostream>
using namespace std;
int main()
{
int a;
cin>>a;
if(a!=2&&a%2==0)
cout<<"YES, you can divide the watermelon into two even parts."<<endl;
else
cout<<"NO, you can't divide the watermelon into two even parts."<<endl;
return 0;
}
a
using namespace std;
int main()
{
int a;
cin>>a;
if(a!=2&&a%2==0)
cout<<"YES, you can divide the watermelon into two even parts."<<endl;
else
cout<<"NO, you can't divide the watermelon into two even parts."<<endl;
return 0;
}
a
全部评论
相关推荐
点赞 评论 收藏
分享
02-25 16:29
齐鲁工业大学 golang 程序员小白条:不是哥们,晚了差不多半年多才来找工作啊
你得有更强的学历和技术,才能有这种资本啊,现在基本都得1-3年的吧,你这就三个月实习了,而且写的这么模糊
点赞 评论 收藏
分享
查看9道真题和解析 点赞 评论 收藏
分享