HDU2509 Be the Winner 博弈
来源:互联网 发布:淘宝的买家秀在哪看 编辑:程序博客网 时间:2024/06/07 21:07
/*和1907几乎完全一样,不解释*/#include <iostream> using namespace std; int value[101]; int main () { int n,sum,temp, i, cnt; while (cin>>n) {sum = 0;cnt = 0;for(i = 0; i < n; i++){cin>>temp;sum = sum^temp;if(temp > 1)cnt = 1;}if(cnt == 0)sum = ( (n-1) % 2 ); if(sum == 0)cout<<"No"<<endl;elsecout<<"Yes"<<endl; } return 0; }
- HDU2509 Be the Winner 博弈
- hdu2509 Be the Winner (尼姆博弈)
- HDU2509 Be the Winner Nim博弈
- hdu2509 Be the Winner
- hdu2509 Be the Winner(博弈论---尼姆博弈)
- HDU2509:Be the Winner(Nim)
- [HDU2509]Be the Winner(博弈Anti-SG+Multi-SG游戏)
- HDU 2509 Be The Winner ( Nim 博弈 )
- hdu 2509 Be the Winner(博弈)
- hdu 2509 - Be the Winner(简单博弈)
- [博弈]HDU 2509 Be the Winner
- hdu 2509 Be the Winner(博弈)
- Be the Winner+hdu+尼姆博弈
- hdu 2509 Be the Winner(博弈Nim)
- HDU 2509 Be the Winner nim博弈
- hdoj 2509 Be the Winner 【博弈】
- HDU 2509 Be the Winner (Nim博弈)
- hdu 2509 Be the Winner(博弈Nim)
- ExpanableListVIew一个奇妙的“手风琴”
- CListCtrl使用技巧
- jquery 相关经验
- 在html中让一个text输入框的默认日期是今天
- MyEclipse中jar包管理技巧
- HDU2509 Be the Winner 博弈
- android 透明
- PowerManager newWakeLock方法
- asp.net 处理和计算微博发布时间
- busybox 详解
- Dojo中文博客征稿启事
- 图片验证码c#产生
- <c:forEach varStatus="status">中 varStatus的属性简介
- Java常用类型定义、转换及比较