POJ - 2234 Matches Game

https://vjudge.net/problem/POJ-2234

#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
	ios::sync_with_stdio(false);
	int n;
	while(cin>>n)
	{
		int res=0;
		int x;
		for(int i=0;i<n;i++)
		{
			cin>>x;
			res^=x;
		}
		if(res==0)
			cout<<"No\n";
		else
			cout<<"Yes\n";
	}
	return 0;
}
posted @ 2021-09-04 19:39  斯文~  阅读(17)  评论(0)    收藏  举报

你好!