POJ 1067
来源:互联网 发布:虚拟实验室软件下载 编辑:程序博客网 时间:2024/05/21 11:02
#include <iostream>#include"cmath"using namespace std;const double gold = (sqrt(5.0) + 1)/ 2; int main(){ int a; int b; while (cin >> a >> b) { if (a > b) { swap(a,b); } double k = b - a; int bk = k * gold + k; if (bk == b) { cout << 0 << endl; } else cout << 1 << endl; } return 0;}
0 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 威佐夫博奕
- 每天一道ACM(1003)--斐波那契数列
- POJ 1011
- android机子重启
- linux 如何控制cpu资源使用
- codevs1074 食物链(并查集+向量偏移)
- POJ 1067
- Codeforces Round #280 (Div. 2)
- 基于ZedBoard的Webcam设计(二):USB摄像头图片采集+QT显示
- 交换两个字符串
- LeetCode题解:Min Stack
- POJ 1088
- PE文件结构(PE文件头一)
- Android自定义圆形进度条
- PE文件结构(PE文件头二)