首先是题目要求:
然后是代码:
#include<bits/stdc++.h>
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" << " " << "0" << " ";
}else{
cout << "0" << " " << "0" << " " << "1";
}
}
return 0;
}
请大家多多出谋划策