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;
}
本文来自博客园,作者:斯文~,转载请注明原文链接:https://www.cnblogs.com/zhiweb/p/15483240.html

浙公网安备 33010602011771号