POJ 1067
来源:互联网 发布:软件测评师考试内容 编辑:程序博客网 时间:2024/04/30 07:39
#include<stdio.h>
#include<math.h>
void swap(int *a,int *b)
{
int tmp;
tmp=*a;
*a=*b;
*b=tmp;
}
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF)
{
if(a>b)
swap(&a,&b);
int diff=b-a;
double mul=(1+sqrt(5.0))/2;//sqrt(5)会complie error ,改成sqrt(5.0)就行了
int ans=1;
if(a==floor(diff*mul))
ans=0;
printf("%d\n",ans);
}
return 0;
}
- poj 1067
- poj 1067
- poj 1067
- poj 1067
- POJ 1067
- poj 1067
- POJ 1067
- 【威佐夫博奕】POJ 1067
- POJ 1067(广搜水题)
- poj 1067 博弈论
- poj 1067 威佐夫博奕
- POJ 1067 博弈
- poj 1067 威佐夫博奕
- POJ 1067 解题报告
- poj 1067 威佐夫博弈
- POJ 1067解题报告
- POJ 1067 威佐夫博奕
- POJ-1067 威佐夫博奕
- Maven工程的搭建
- POJ 1663Number Steps
- 一、数据库系统的基本概念
- 使用Custom Draw优雅的实现ListCtrl的重绘
- 【D3.js数据可视化系列教程】--(八)使用D3绘制SVG
- POJ 1067
- 1029. Median (25) @ PAT (Advanced Level) Practise
- Write-through和Write-back
- android系统mount详情--vold.fstab (转载)
- [C语言]菜鸟的一些理解-字符串
- Android当中切换图片
- 今日学习linux心得体会
- hdu 1217 Arbitrage
- 1 Clojure学习笔记(安装)