求助!第二个点WA掉了!
查看原帖
求助!第二个点WA掉了!
736212
___wa___楼主2022/8/9 15:57

QAQ哪里错了

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

2022/8/9 15:57
加载中...