6 条题解
-
0
#include <bits/stdc++.h> using namespace std; int main(){ int a,z,x,c,v; cin>>a; if(a%2==0 and a<=12 and a>4) z=1; else z=0; if(a%2==0 or(a>4 and a<12) or (a%2==0 and a>4 and a<12)) x=1; else x=0; if((a%2==!0 and (a>12 or a<=4)) or (a%2==0 and a<=12 and a>4)) c=0; else c=1; if(a%2==!0 and (a<=4 or a>=12)) v=1; else v=0; cout<<z<<" "<<x<<" "<<c<<" "<<v; return 0;
信息
- ID
- 617
- 时间
- 1000ms
- 内存
- 125MiB
- 难度
- 3
- 标签
- (无)
- 递交数
- 228
- 已通过
- 116
- 上传者