60分,求助
查看原帖
60分,求助
442781
Mizuiro79楼主2020/12/17 17:27
#include<iostream>
using namespace std;
int main()
{
	int x;
	cin>>x;
	if(x%2==0&&(x>4&&x<=12))
	{
		cout<<"1"<<" "<<"1"<<" "<<"0"<<" "<<"0";
	}
	else
	{
		cout<<"0"<<" ";
		if(x%2==0||(x>4&&x<=12))
	{
		cout<<"1"<<" "<<"1";
	}
		if(x%2!=0&&(x<=4&&x>12))
		{
			cout<<"1";
		}
	}
	return 0;
 } 
2020/12/17 17:27
加载中...