Problem Description
Alice and Bob are playing a game.
The game is played on a set of positive integers from 1 to n.
In one step, the player can choose a positive integer from the set, and erase all of its divisors from the set. If a divisor doesn't exist it will be ignored.
Alice and Bob choose in turn, the one who cannot choose (current set is empty) loses.
Alice goes first, she wanna know whether she can win. Please judge by outputing 'Yes' or 'No'.
 
Input
There might be multiple test cases, no more than 10. You need to read till the end of input.
For each test case, a line containing an integer n. (1≤n≤500)
 
Output
A line for each test case, 'Yes' or 'No'.
 
Sample Input
1
 
Sample Output
Yes
 
Source
 
Recommend
chendu   |   We have carefully selected several similar problems for you:  6318 6317 6316 6315 6314 
 
 
 
 
 // 当2到N为必胜局面时,先手就去1和必胜时应取得数,则先手一定必胜
// 当2到N为必败局面时,先手就取1,则把必败局面给后手,则先手必胜
int main()
{ int n;
while(~scanf("%d",&n)){
printf("Yes\n");
}
return ;
}

最新文章

  1. java SE编写图形应用程序
  2. vs 中怎么用c改变部分字体颜色
  3. 整理: Android HAL
  4. 框架模式 MVC 在Android中的使用
  5. Oracle12c功能增强 新特性之管理功能的增强
  6. JQuery的几种页面加载完执行三种方式
  7. LintCode 推断一个二叉树树是否是还有一个二叉树的子书
  8. delphi中用代码实现注册Ocx和Dll(有点怪异,使用CallWindowProc来调用指定函数DllRegisterServer)
  9. C++ 友元函数的函数指针
  10. 洗礼灵魂,修炼python(4)--从简单案列中揭示常用内置函数以及数据类型
  11. 解读vscode断点调试配置文件【待续】
  12. ajax的一些相关
  13. Vue原理--虚拟DOM
  14. MySQL查询命令_SELECT 子查询
  15. python的Web框架,类视图
  16. DOM结构及优化
  17. Delegate event 委托事件---两个From窗体使用委托事件
  18. MySQL的初次见面礼基础实战篇
  19. android RadioButton文字居中的方法
  20. memset struct含有string的崩溃

热门文章

  1. C# 序列化与反序列化json
  2. AtCoder Regular Contest 075 2017年6月4日 C、D、E题解
  3. Spark Mllib里决策树回归分析如何对numClasses无控制和将部分参数设置为variance(图文详解)
  4. 微服务实践分享(2)api网关
  5. 通用的ashx调用
  6. 基于JAVA的设计模式之代理模式
  7. git从无到有建立一个仓库并上传文件
  8. npm使用快速的安装源(nrm)
  9. Git命令图片版
  10. Python+Selenium之断言对应的元素是否获取以及基础知识回顾