求助P5710(测试点80分,错的那个输入为1)
  • 板块灌水区
  • 楼主sunzhenghao
  • 当前回复6
  • 已保存回复6
  • 发布时间2022/1/4 20:28
  • 上次更新2023/10/28 12:48:38
查看原帖
求助P5710(测试点80分,错的那个输入为1)
559423
sunzhenghao楼主2022/1/4 20:28
#include<iostream>
using namespace std;
int main()
{
	int n;
	bool x,y;
	cin>>n;
	if(n%2==0)
		x=1;
	else
		x=0;
	if(n>4 && n<=12)
		y=1;
	else 
		y=0;
	
	//以下为判断 
	
	
	//小A	
	if(x==1 && y==1)
		cout<<1<<" ";
	else
		cout<<0<<" ";
		
	//Uim 
	if(x==1 || y==1)
		cout<<1<<" ";
	else 
		cout<<0<<" ";
		
	//八尾
	if(x==1 && y==1)
		cout<<0<<" ";
	else if(x=1)
		cout<<1<<" "; 
	else if(y=1)
		cout<<1<<" ";
		
	//正妹
	if(x==0 && y==0)
		cout<<1<<" ";
	else 
		cout<<0<<" ";
	return 0;
	 
 } 
2022/1/4 20:28
加载中...