求助啊!!!(>_<)
查看原帖
求助啊!!!(>_<)
1641537
LaoshuLaohu楼主2025/1/28 10:41

60分

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

求助啊!!!(>_<)

2025/1/28 10:41
加载中...