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