为什么过不了?
查看原帖
为什么过不了?
1047806
chentaiwen楼主2023/8/29 16:49
#include<bits/stdc++.h>
using namespace std;
int main(){
    int x,a,u,b,z,t1,t2;
    t1=0;
    t2=0;
    cin >> x;
    if (x%2==0){
        t1=1;
    }
    if (x>4 && x<=12){
        t2=1;
    }
    
    if (t1==1 && t2==1){
        a=1;
    }
    if (t1==1 || t2==1){
        u=1;
    }
    if (t1==1 ^ t2==1){
        b=1;
    }
    if (t1==0 && t2==0){
        z=1;
    }
    cout<<a<<" "<<u<<" "<<b<<" "<<z<<endl;
    return 0;
}

比如测试点一,显示:

Wrong Answer.wrong answer On line 1 column 5, read 3, expected 0.
2023/8/29 16:49
加载中...