80分,求助!!!
查看原帖
80分,求助!!!
1578301
luozixin666楼主2025/1/14 21:49
#include<bits/stdc++.h>
using namespace std;
int main(){
	int n;
	cin>>n;
	bool x1=(n%2==0);
	bool x2=(n>4 && x1<=12);
	if(x1==1 && x2==1){
		cout<<"1"<<" ";
	}else{
		cout<<"0"<<" ";
	}
	if(x1==1 || x2==2){
		cout<<"1"<<" ";
	}else{
		cout<<"0"<<" ";
	}
	if((x1==1 && x2==0) || (x1==0 && x2==1)){
		cout<<"1"<<" ";
	}else{
		cout<<"0"<<" ";
	}
	if(x1==0 && x2==0){
		cout<<"1"<<" ";
	}else{
		cout<<"0"<<" ";
	}
	return 0;
}

2025/1/14 21:49
加载中...