爆0,为什么呀
查看原帖
爆0,为什么呀
1040800
Charlie0429楼主2023/12/31 21:32
#include<iostream>
using namespace std;
int main()
{
	int x;
	cin>>x;
	if(x%2==0&&x>4&&x<=12){
		cout<<'1';
	}else{
		cout<<'0';
	}
	
	if(x%2==0||4<x&&x>=12){
		cout<<'1';
	}else{
		cout<<'0';
	}
	
	if(x%2==0&&x<=4||x>12){
		cout<<'1';
	}
	else if(x%2!=0&&x>4&&x<12){
		cout<<'1';
	}
	else if(x%2==0&&x>4&&x<12){
		cout<<'0';
	}
	else{
		cout<<'0';
	}
	
	if(x%2!=0&&x<=4||x>12){
		cout<<'1';
	}
	else{
		cout<<'0';
	}
	return 0;
}
2023/12/31 21:32
加载中...