求助
查看原帖
求助
1587302
封禁用户楼主2025/1/20 11:07

哪里错了?????!!!!!

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

2025/1/20 11:07
加载中...