-Nim
游戏
台阶实现
#include <iostream>
using namespace std;
int main () {
int n;
cin >> n;
int res = 0;
for (int i = 1, x; i <= n; ++ i) {
cin >> x;
if (i & 1) res ^= x;
}
cout << (res != 0 ? "Yes" : "No") << endl;
return 0;
}