博弈论

  这个是博弈游戏中的Wythoff博弈

以下为我的代码:

 //POJ 1067
#include<cmath>
#include<cstdio>
#include<algorithm>
int main(){
freopen("1067.in","r",stdin);
int a,b;
double q=(+sqrt(5.0))/2.0;
while(scanf("%d%d",&a,&b)!=EOF){
if (a>b) std::swap(a,b);
int k=b-a;
printf("%d\n",a==(int)(k*q) ? : );
}
return ;
}

最新文章

  1. HtmlHelper拓展实现RadioList
  2. [Linux]Linux下redis的安装及配置.
  3. Compiler Warning (level 3) C4800
  4. yii2权限控制rbac之rule详细讲解(转)
  5. Java中对List集合内的元素进行顺序、倒序、随机排序的示例代码
  6. 【转发】Cross-thread operation not valid: Control &#39;progressBar1&#39; accessed from a thread other than the thread it was created on
  7. SSTable and Log Structured Storage: LevelDB
  8. 方法参数out
  9. asp.net中HTML代码编码、解码与页面的重定向
  10. 性能测试脚本新玩法---fiddler&amp;&amp;Jmeter
  11. EventBus使用小记
  12. 修改窗口属性(全部都是SetWindowLong设置)
  13. CBO学习笔记(转)
  14. Java与.net的区别delegate和event
  15. opencv中cvCreateImage大图片时出错
  16. Windows Server 2008 网管数据采集 努力做“日拱一卒“
  17. Service介绍(MediaPlayer应用)
  18. jgs--多线程和synchronized
  19. OI暑假集训游记
  20. 响应消息的内容类型 text/html; charset=utf-8 与绑定(application/soap+xml; charset=utf-8)的内容类型不匹配。

热门文章

  1. vlan知识
  2. 同一个tomcat多个web应用共享session
  3. 郑州轻工业OJ1400--这不可能是情书吧
  4. 使用struct实现面向对象编程的封装
  5. 使用记事本+CSC编译程序
  6. mysql颠覆实战笔记(五)--商品系统设计(二):定时更新商品总点击量
  7. 8.samba server与client配置
  8. 转载:Linux内核探索之路——关于书
  9. centos系统下安装使用composer教程
  10. Extjs combox的详解