题目链接:Nim游戏

c++
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
int n;
cin >> n;
int res = 0;
while(n--)
{
int x;
cin >> x;
res ^= x;
}
if(res) cout << "Yes" << endl;
else cout << "No" << endl;
return 0;
}