Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
14874 | 戰無不勝的毛澤東思想萬歲! | 【入门】数的性质 | C++ | 解答错误 | 0 MS | 252 KB | 467 | 2022-12-07 20:41:26 |
#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; }