题目传送门 题目大意:有n个植物排成一排,标号为1-n,每株植物有自己的生长速度ai,每对植物浇一次水,该株植物就长高ai,现在机器人从第0个格子出发,每次走一步,不能停留,每一步浇一次水,总共可以走m步,问最矮的植物最高是多少。 思路: 一般此类最小值最大问题都是二分,此题显然也是可以二分植物的高 ...
分类:
其他好文 时间:
2018-11-07 14:13:50
阅读次数:
248
G. Two-Paths time limit per test 3.5 seconds memory limit per test 256 megabytes input standard input output standard output G. Two-Paths time limit p ...
分类:
其他好文 时间:
2018-11-04 14:02:12
阅读次数:
152
重入锁基本使用: 使用java.util.concurrent.locks.ReentrantLock 类来实现,可以替代synchronized关键字。如下例,重入锁有着显示的操作过程,开发者可以手动指定在哪里加锁,在哪里释放(退出临界区时必须释放,不然其他线程没有机会再访问了)。重入的意思是,同 ...
分类:
其他好文 时间:
2018-11-03 23:06:56
阅读次数:
168
0x00 标准模块 Module : standardFull name : Standard moduleDescription : Basic commands (does not require module name) exit - Quit mimikatz cls - Clear scr ...
分类:
其他好文 时间:
2018-11-03 14:02:50
阅读次数:
190
缓存: 是计算机领域的概念,它介于应用程序和永久性数据存储源之间。 缓存: 一般人的理解是在内存中的一块空间,可以将二级缓存配置到硬盘。用白话来说,就是一个存储数据的容器。我们关注的是,哪些数据需要被放入二级缓存。 缓存作用: 降低应用程序直接读写数据库的频率,从而提高程序的运行性能。缓存中的数据是 ...
分类:
Web程序 时间:
2018-11-02 14:41:39
阅读次数:
164
```nodejs setTimeout(() = { //定时器 console.log("3 seconds have passed"); }, 3000); setInterval(function () { //延时循环 console.log("2 seconds have passed" ...
分类:
Web程序 时间:
2018-11-01 22:32:54
阅读次数:
218
进入uboot: 上电,当出现Press f of F stop Auto-Boot in 3 seconds: 0 时按键盘上的F键 Password for uboot cmd line : 密码:admin@huawei.com 绕过console密码: defaultuser 应该按Y,然后... ...
分类:
其他好文 时间:
2018-11-01 12:36:11
阅读次数:
763
需要的maven依赖 jar包,是对Jedis的封装 maven依赖: 项目的目录结构: redis中代码的封装: controller 启动类 运行结果: redis: 到期了后 就没了哦 过期了 ...
分类:
编程语言 时间:
2018-11-01 11:29:54
阅读次数:
155
_thread — Low-level threading API¶ 参考文档:https://docs.python.org/3.7/library/_thread.html This module provides low-level primitives for working with mu ...
分类:
编程语言 时间:
2018-10-30 11:13:18
阅读次数:
324