#include<bits/stdc++.h>
using namespace std;
int main(){
int a;
bool b,b1;
cin >> a;
if(a%2==0)b = 1;
if(4<a && a<=12)b1 = 1;
cout << (b&&b1)?"1 ":"0 ";
cout << (b||b1)?"1 ":"0 ";
cout << (b^b1)?"1 ":"0 ";
cout << (!(b||b1))?"1 ":"0 ";
return 0;
}
求助
输入12输出1100 中间的空格没了