#include <cstring>
#include <iostream>
#include <algorithm>
#include <unordered_set>
using namespace std;
const int N = ;
int n;
int f[N];
int sg(int x) {
if (f[x] != -) return f[x];
unordered_set<int> S;
for (int i = ; i < x; i ++ )
for (int j = ; j <= i; j ++ )
S.insert(sg(i) ^ sg(j));
for (int i = ;; i ++ )
if (!S.count(i))
return f[x] = i;
}
int main() {
cin >> n;
memset(f, -, sizeof f);
int res = ;
while (n -- ) {
int x;
cin >> x;
res ^= sg(x);
}
if (res) puts("Yes");
else puts("No");
return ;
}

最新文章

  1. Number Sequence 分类: HDU 2015-06-19 20:54 10人阅读 评论(0) 收藏
  2. Debian 入门安装与配置2
  3. 【转载】关于Python中的yield
  4. (Loadrunner)Error: Failed to send data by channels - post message failed.(转)
  5. Latex之CJK中文书签乱码[转]
  6. opencv Installation in Linux and hello world
  7. 通过 yum update 将系统从CentOS 6.2 升级到 CentOS 6.6 及升级过程中的简单排错
  8. 安卓tabhost和子Activity通信方法
  9. 【bzoj 2159】Crash 的文明世界
  10. oracle 分析函数和开窗函数
  11. lnoi2019游记
  12. 机器学习系列-tensorflow-02-基本操作运算
  13. 使用Tr&#230;fɪk(traefik)来加速Qt在线更新
  14. FPGA editor 的使用之一 ------ Probe探针
  15. CSS3利用背景渐变和background-size配合完成渐变与条纹效果[持续更新中...]
  16. Cocos2d-x3.0触摸
  17. Django_Restframwork_序列号组件
  18. iOS学习笔记(6)——翻译苹果文档About Windows and Views
  19. Centos 安装 Oracle Java JDK
  20. 四则运算(Android)版

热门文章

  1. modbus 协议说明及常用格式
  2. Object类、日期时间类、system类及StringBuilder字符串容器
  3. 有关css编写文字动态下划线
  4. CentOS7安装docker和docker-compose
  5. Gin框架之文件上传
  6. Java【第一课 java基本结构】
  7. API接口幂等性设计
  8. lvm实现服务器磁盘空间合并
  9. 【32】Padding(填充)原理讲解
  10. mybatis入门案例2