hdu1527 取石子游戏 【威佐夫博弈】
来源:互联网 发布:手机网络挣钱 编辑:程序博客网 时间:2024/05/21 03:57
/* ***********************************************Author :MaltubEmail :xiang578@foxmail.comBlog :htttp://www.xiang578.com************************************************ */#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>#include <vector>#include <queue>#include <set>#include <map>#include <string>#include <math.h>#include <stdlib.h>#include <time.h>//#include <bits/stdc++.h>#define rep(i,a,n) for(int i=a;i<n;i++)#define per(i,a,n) for(int i=n-1;i>=a;i--)#define pb push_backusing namespace std;typedef vector<int> VI;typedef long long ll;const ll mod=1000000007;const int N=1000;int main(){ int _,n,m,b,k; while(~scanf("%d%d",&n,&m)){ if(n>m) swap(n,m); k=m-n; b=k*(1+sqrt(5.0))/2; if(b==n) puts("0"); else puts("1"); } return 0;}
0 0
- HDU1527 取石子游戏 威佐夫博弈
- hdu1527 取石子游戏 (威佐夫博弈)
- HDU1527:取石子游戏(威佐夫博弈)
- hdu1527取石子游戏 威佐夫博弈
- poj1067 hdu1527 取石子游戏 威佐夫博弈
- 取石子游戏(hdu1527+威佐夫博弈)
- 威佐夫博弈 hdu1527 取石子游戏
- hdu1527 取石子游戏 【威佐夫博弈】
- 【HDU1527】取石子游戏(威佐夫博弈)
- ACM-威佐夫博弈之取石子游戏——hdu1527
- HDU1527——取石子游戏(威佐夫博弈)
- HDU1527——取石子游戏(威佐夫博弈)
- hdu1527 取石子游戏
- hdu1527取石子游戏
- 取石子游戏 hdu1527
- 取石子游戏 hdu1527
- 取石子游戏(hdu1527,威左夫博弈基础)
- hdu1527 取石子游戏-威佐夫博奕
- 工作问题
- java设计模式_装饰模式
- 77.You executed the following command to perform a backup of the USERS tablespace: SQL> ALTER TABLES
- c# datetimepicker中format设置
- 深入理解JVM
- hdu1527 取石子游戏 【威佐夫博弈】
- 数据结构学习笔记之用Java实现双向链表
- linux携带密码登录其他远程机
- Apache 服务器下载、安装、应用
- Java 8: Lambda Expression
- shiro令牌环
- Lightoj1265 Island of Survival 概率题
- HDU 5085/BC 15D Counting problem
- javascript对文档对象模型DOM的基本操作学习笔记