#请问为什么第二个测试点过不了
查看原帖
#请问为什么第二个测试点过不了
881317
spessert楼主2023/11/16 17:42
#include<iostream>
  
 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)) 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)&&(x%2!=0)) cout<<"1 ";
    else cout<<"0 ";
  
    return 0;
}
2023/11/16 17:42
加载中...