求助,只有80分
查看原帖
求助,只有80分
344509
二分之一如梦楼主2020/5/11 11:52
#include<iostream>
using namespace std;
int main()
{
    unsigned x;
    cin >> x;
    bool a = x % 2 == 0, b = x > 4 && x <= 12;
    cout << (a && b) << " " << (a || b) << " " << ((a == 1 && b == 0) && (a == 0 && b == 1)) << " " << (!a && !b) << endl;
    return 0;
}
2020/5/11 11:52
加载中...