博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
POJ 2484 A Funny Game
阅读量:6947 次
发布时间:2019-06-27

本文共 769 字,大约阅读时间需要 2 分钟。

博弈。

$n>=3$,后手赢,否则先手赢。

#pragma comment(linker, "/STACK:1024000000,1024000000")#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;typedef long long LL;const double pi=acos(-1.0),eps=1e-8;void File(){ freopen("D:\\in.txt","r",stdin); freopen("D:\\out.txt","w",stdout);}template
inline void read(T &x){ char c = getchar(); x = 0;while(!isdigit(c)) c = getchar(); while(isdigit(c)) { x = x * 10 + c - '0'; c = getchar(); }}int n;int main(){ while(~scanf("%d",&n)) { if(n==0) break; if(n>=3) printf("Bob\n"); else printf("Alice\n"); } return 0;}

 

转载于:https://www.cnblogs.com/zufezzt/p/5831574.html

你可能感兴趣的文章
ERROR 1366 (HY000): Incorrect string value:MySQL数据库、表的字符集为GBK
查看>>
Linux系统安装过程
查看>>
css flex布局
查看>>
如何高效完成英文文献翻译
查看>>
Unity 射线 Ray
查看>>
SVG绘制loading效果
查看>>
移植性问题の[windows编程]error C2664: “MessageBoxW”: 不能将参数 2 从“char *”转......
查看>>
InheritableThreadLocal类原理简介使用 父子线程传递数据详解 多线程中篇(十八)...
查看>>
MVC插件实现
查看>>
Swift学习笔记1---变量和元组
查看>>
FTP权限问题解析,553 Can't open that file: Permission denied
查看>>
阿里云服务器重置后远程链接失败的解决办法
查看>>
POJ 3159 差分约束
查看>>
初始化参数绑定——日期格式
查看>>
python 基础 10.0 nosql 简介--redis 连接池及管道
查看>>
【SP1811】 LCS - Longest Common Substring(SAM)
查看>>
Backup: Array in Perl6
查看>>
ansible常用模块
查看>>
【C++】typeinfo.h
查看>>
Asp.net使用powershell管理hyper-v
查看>>