1798[Bob and Alice]
来源:互联网 发布:淘宝上工作室 编辑:程序博客网 时间:2024/04/29 18:29
肚子疼还写了两水题~
哼 程序媛好苦逼TAT
//这题略捞- -//解法是说一定要走完所有格子的情况//格子总是是单数就一定是Bob赢,双数就一定是Alice赢//其实如果玩家动下脑筋谁赢还是不一定的#include<iostream>using namespace std;int main(){int n;while( cin >> n && n != 0 ){if( n % 2 == 0 )cout << "Alice" << endl;elsecout << "Bob" << endl;}return 0;}
- 1798[Bob and Alice]
- Alice and Bob
- 2683. Alice and Bob
- 1798. Alice and Bob
- hdu4268 Alice and Bob
- HDU4268 Alice and Bob
- Alice, Bob and Chocolate
- hdu4268 Alice and Bob
- A:Alice and Bob
- hdu4111 Alice and Bob
- Alice and Bob
- Alice and Bob 数学题
- Alice and Bob
- XTU_1168 Alice and Bob
- SOJ.Alice and Bob
- UPC2222: Alice and Bob
- F:Alice and Bob
- Alice and Bob
- Google搜索特殊字符的方法
- 设备模型object
- POJ_2362_Square(DFS)
- myeclipse8.5的注册机代码
- 项目管理的九大知识领域
- 1798[Bob and Alice]
- OCP-1Z0-053-V12.02-230题
- rank() over (partition by xx order by xx)
- SVN异常处理——提交失败:txn-current-lock:拒绝访问
- AChartEngine使用View显示图表
- Linux系统命令-用户和用户组相关
- Ubuntu 13.10 切换输入法快捷键
- malloc()参数为0的情况
- The word is not correctly spelled