提交时间:2022-12-07 20:41:26

运行 ID: 14874

#include<bits/stdc++.h> using namespace std; int main(){ int x; cin>>x; if(x>=4&&x<=12&&x%2==0) cout<<1<<" "; else cout<<0<<" "; if(((x>=4&&x<=12)||x%2==0)||(x>=4&&x<=12&&x%2==0)) cout<<1<<" "; else cout<<0<<" "; if(x>=4&&x<=12){ if(x%2!=0){ cout<<1<<" "; } else cout<<0<<" "; }else if(x%2==0){ if(x>4&&x<=12) cout<<1<<" "; else cout<<0<<" "; } else cout<<1<<" "; if(x>=4&&x<=12||x%2==0) cout<<0; else cout<<1; return 0; }