HDU 1849 Rabbit and Grass
来源:互联网 发布:python爬虫入门书籍 编辑:程序博客网 时间:2024/05/19 17:59
传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1850
题目大意:中文题目不解释
分析:
赤果果的NIM,再次不解释。
代码
#include <iostream>using namespace std;int main(){ int ans,n,t; while(cin >> n && n) { ans = 0; while(n--) { cin >> t; ans ^= t; } if(ans) cout << "Rabbit Win!" << endl; else cout << "Grass Win!" << endl; } return 0;}
- HDU 1849 Rabbit and Grass
- HDU 1849 -Rabbit and Grass
- hdu 1849 Rabbit and Grass
- HDU 1849 Rabbit and Grass
- hdu 1849 Rabbit and Grass
- HDU 1849 Rabbit and Grass
- HDU 1849 Rabbit and Grass
- hdu 1849 Rabbit and Grass
- hdu 1849 Rabbit and Grass
- HDU-1849-Rabbit and Grass
- Rabbit and Grass(hdu-1849)
- HDU 1849 Rabbit and Grass
- HDU 1849 Rabbit and Grass
- 【hdu 1849】Rabbit and Grass
- HDU-1849-Rabbit and Grass
- hdu 1849 Rabbit and Grass
- hdu 1849Rabbit and Grass(博弈)
- HDU(1849)Rabbit and Grass(博弈)
- Java编程思想》作者:C++不垃圾,只是Java很傲慢
- xcode4.6.1 免证真机测试
- 我创业失败的血泪史
- 第十一次上机实验
- 2路插入排序算法
- HDU 1849 Rabbit and Grass
- 安卓-----多线程下载
- 宏定义define
- DirectX 3D_实践之DirectX3D 网格的外接体的创建和使用
- C#掷股子(Random的应用)
- linux高级编程01 内存管理
- C++真的还有未来吗?
- win7中怎样使用问题步骤记录器?
- Stencil Buffer