Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
14884 戰無不勝的毛澤東思想萬歲! 【入门】数的性质 C++ 通过 0 MS 260 KB 472 2022-12-07 20:48:33

Tests(19/19):


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


测评信息: