第二个测试点有问题,请大家帮忙看看
查看原帖
第二个测试点有问题,请大家帮忙看看
836803
WindowHorse楼主2023/7/8 21:00
#include<iostream>
#include<cmath>
using namespace std;
int main() {
    int x;
    cin >> x;
    if (x % 2 == 0 && (x <= 12 && x > 4))
        cout << 1;
    else
        cout << 0;
    cout<<" ";
    if (x % 2 == 0 || (x <= 12 && x > 4))
        cout << 1;
    else
        cout << 0;
    cout<<" ";
    if (x % 2 == 0 && (x > 12 && x <= 4))
        cout << 1;
    else if (x % 2 != 0 && (x <= 12 && x > 4))
        cout << 1;
    else
        cout << 0;
    cout<<" ";
    if (x % 2 != 0 && (x > 12 && x <= 4))
        cout << 1;
    else
        cout << 0;
    return 0;
}
2023/7/8 21:00
加载中...