HDU
来源:互联网 发布:lol显示网络连接异常 编辑:程序博客网 时间:2024/05/22 16:50
威佐夫博弈 入门级
奇异局势判定
#include<iostream>#include<algorithm>#include<cstdio>#include<cstdlib>#include<cstring>#include<string>#include<cmath>#include<set>#include<queue>#include<stack>#include<map>using namespace std;typedef long long ll;const int maxn = 1e5 + 7, INF = 0x7f7f7f7f, mod = 1e9 + 7;int a, b;int main() { while(~scanf("%d %d", &a, &b)) { if(a > b) swap(a, b); int k = b - a; int a_ = k * (sqrt(5.0) + 1) / 2; if(a_ == a) puts("0"); else puts("1"); } return 0;}
阅读全文
1 0
- hdu
- hdu
- HDU
- hdu ()
- hdu
- hdu
- HDU
- HDU
- hdu
- hdu
- HDU
- Hdu
- hdu
- hdu-
- hdu
- hdu
- hdu
- HDU
- sublime gitgutter 显示历史代码内容插件安装及使用
- Cesium部分控件设置
- Linux 基础命令--长期更新
- 【Android training】使用系统权限
- 设置了table-cell 属性后,用百分比来设置宽度为什么会出现问题
- HDU
- C++ 手动开栈方法
- android获取键盘高度,不能用你打我
- linux系统中rsync+inotify实现服务器之间文件实时同步
- 获取签名证书的SHA1值和MD5值
- testng+maven+java+idea 接口测试入门二:使用reportng优化报告格式
- 前端性能监控
- python采集第一步
- Java循环赋值和循环设置属性问题