求助#3#4#5上第三个数字错了
查看原帖
求助#3#4#5上第三个数字错了
761448
biometric楼主2022/10/5 14:33

code:

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int x;
    cin >> x;
    cout << (x % 2 == 0 || x > 4 && !(x < 12)) << " " << (x % 2 == 0 && x > 4 && !(x < 12)) << " " << (x % 2 == 0 && !(x > 4 && x <= 12) || (x > 4 && x <= 12) && x % 2 == 1) << " " << !((x % 2 == 0 || x > 4 && !(x < 12)));
    return 0;
}
2022/10/5 14:33
加载中...