哪错了?
查看原帖
哪错了?
1409556
wanghonglei楼主2024/9/19 21:19
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int x;
	bool y;
	string z;
	cin>>x;
	if(x>2)
	{
	    y=true;
	}
	else if(x==2)
	{
	    cout<<"Tie";
	}
	else if(x<2)
	{
	    y=false;
	}
	if(y)
	{
	    z="Survivor Win";
	}
	else
	{
	    z="Hunter Win";
	}
	cout<<z;
	return 0;
}
2024/9/19 21:19
加载中...