考虑全面,平分为偶数,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
全部评论
相关推荐
点赞 评论 收藏
分享
2025-12-09 14:12
新乡学院 嵌入式软件开发
程序员花海:实习和校招简历正确格式应该是教育背景+实习+项目经历+个人评价 其中项目经历注意要体现业务 实习经历里面的业务更是要自圆其说 简历模板尽可能保持干净整洁 不要太花哨的 点赞 评论 收藏
分享

