就是我的和这个程序在编译器上可以运行出来,但是一提交就全错。求解!!
查看原帖
就是我的和这个程序在编译器上可以运行出来,但是一提交就全错。求解!!
831297
PalSweet楼主2022/10/21 18:26
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,a,b;
	cin>>n;
	a=(n%2==0);
	b=(n>4&&n<=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";
}
2022/10/21 18:26
加载中...