80分求调(第4个点没过)
查看原帖
80分求调(第4个点没过)
1435780
musirui楼主2024/11/27 19:07
#include <bits/stdc++.h>
using namespace std;

signed main(int argc, char **argv) {
	int x;
	cin >> x;
	bool a = (x % 4 == 0);
	bool b = (x > 4 && x <= 12);
	if (a && b) {
		cout << "1 ";
	} else {
		cout << "0 ";
	}
	if (a || b) {
		cout << "1 ";
	} else {
		cout << "0 ";
	}
	if ((a && !b) || (!a && b)) {
		cout << "1 ";
	} else {
		cout << "0 ";
	}
	if (!a &&!b) {
		cout << "1 ";
	} else {
		cout << "0 ";
	}
	return 0;
}
2024/11/27 19:07
加载中...