poj1067 取石子
来源:互联网 发布:unix网络编程卷2 pdf 编辑:程序博客网 时间:2024/05/23 20:37
//很古老的题,应该早就K掉的。博弈,边写边积累吧,没公式还真解不出来
#include<iostream>#include<cmath>using namespace std;int main(){ int a,b; while(cin>>a>>b){ if(a>b) swap(a,b); intbei=b-a,t=(floor)(bei*(1+sqrt(5.0))/2.0); if(a==t)cout<<"0"<<endl; elsecout<<"1"<<endl; } return 0;}
0 0
- POJ1067取石子游戏
- poj1067(取石子游戏)
- 取石子游戏POJ1067
- poj1067取石子游戏
- POJ1067----取石子游戏
- poj1067 取石子游戏
- poj1067 取石子
- poj1067取石子游戏
- poj1067 取石子游戏
- POJ1067 取石子游戏
- poj1067 取石子游戏
- POJ1067 取石子游戏
- 【poj1067】 取石子游戏
- poj1067/hdoj1527 取石子游戏
- poj1067取石子游戏(威佐夫博奕)
- [POJ1067] 取石子游戏 && 博弈
- POJ1067 取石子游戏(博弈论)
- poj1067 取石子游戏--威佐夫博奕
- Comparable与Comparator之比较
- 【日志】2014_4_2 git submodule & grep & vs & ant
- 开篇大典
- Java快速排序
- Fedora 20下grub2 折腾篇——二
- poj1067 取石子
- 最牛B的编码套路
- Panono:自己也能分享街景
- seoer们极易无视的秘闻
- 黑马程序员 自学01C#编程基础之基本概念
- lua语言学习(2.0)(终章)
- Objective-C语法之Objective-C语言和iOS系统(简介,语法,系统结构)
- 微信公众号 dukeyunz 欢迎关注
- 反射的使用---调用方法(*)