2019-05-19

13:25:37

加油,加油,坚持,坚持!!!

一定要逆推,才可以是最少的次数

更好的方法:

https://www.cnblogs.com/ECJTUACM-873284962/p/6379014.html

#include <bits/stdc++.h>
using namespace std;
typedef long long ll; int main()
{
ll x, y; scanf("%lld %lld", &x, &y);
ll maxx = y;
ll midd = y;
ll minn = y;
ll p = ;
ll q = ;
ll count = ;
while()
{
p = maxx;
q = midd;
maxx = midd + maxx - ;
midd = p;
minn = q;
count++;
if (maxx >= x)
{
cout << count + << endl;
return ;
}
}
return ;
}

最新文章

  1. Nginx下wordpress伪静态规则(rewrite)
  2. table 相关
  3. git windows中文目录乱码问题解决
  4. NV Maxwell architecture
  5. hadoop的核心思想
  6. 一行代码解决各种IE兼容问题,IE6,IE7,IE8,IE9,IE10(转)
  7. javascript常用对象
  8. Nessus漏洞扫描教程之配置Nessus
  9. Ubuntu 13.10 PHP 5.5.x mcrypt missing – Fatal Error: Undefined function mcrypt_encrypt()!
  10. Android:自定义滚动边缘(EdgeEffect)效果
  11. WPF入门介绍
  12. 蓝桥网试题 java 基础练习 杨辉三角形
  13. 深入hibernate的三种状态
  14. 对EF的封装
  15. Kafka基础入门
  16. SQLServer之UNIQUE约束
  17. linux 下tftpf搭建
  18. 从0开始安装fedora23的笔记-- 以及使用fedora的常规问题-2
  19. MySQL--InnoDB并发线程控制
  20. 数据库——SQL数据连接查询

热门文章

  1. 【Oracle】客户端监听配置
  2. JavaScript编程题(一)
  3. 学习廖雪峰的Python教程之第一个Python程序
  4. 【Python基础】while循环语句
  5. Linux内核tracepoints
  6. GDI 边框绘制函数(8)
  7. 【JavaScript游戏开发】使用HTML5+Canvas+JavaScript 封装的一个超级马里奥游戏(包含源码)
  8. Nginx设置alias别名目录访问phpmyadmin
  9. python的多版本安装以及常见错误(长期更新)
  10. linux -- 扩容 /home 空间( xfs文件系统分区扩容指定挂载点)