B. Marvolo Gaunt's Ring Professor Dumbledore is helping Harry destroy the Horcruxes. He went to Gaunt Shack as he suspected a Horcrux to be present th ...
分类:
其他好文 时间:
2019-08-18 18:02:38
阅读次数:
278
题目链接:https://www.luogu.org/problem/CF460C 思路: 考虑二分答案。 对于这$n$个数,我们可以从左往右,若发现小于当前答案的数,把$[i,i+w]$之间的所有数都加到当前答案的数值,判断总次数与$m$的关系就行了。 对于更新和查询的操作,不妨使用树状数组维护差 ...
分类:
其他好文 时间:
2019-08-17 12:17:27
阅读次数:
84
一、List 1、代码演示 2、故障现象 java.util.ConcurrentModificationException 3、导致原因 一个线程正在写,另一线程过来抢夺,导致数据不一致,即并发修改导致的异常 4、解决方案 new Vector<>() Collections.synchroniz ...
分类:
编程语言 时间:
2019-08-16 00:20:41
阅读次数:
112
There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by rolling up, down, left or right, but it won't stop roll ...
分类:
其他好文 时间:
2019-08-13 13:33:18
阅读次数:
73
以下内容还可以通过 Google Slide 查看:https://docs.google.com/presentation/d/1eYP4bkVBojI_e6PqdpxIf0hvWO JwAf fygcYMNSQa8/edit?usp=sharing ...
分类:
Web程序 时间:
2019-08-11 15:28:44
阅读次数:
83
我在利用postman查看上传图片文件时,出现了如下图的错误,看到之后很懵逼。 图1 上网搜了一下,归结下来就是参数不一致导致的。不过还有一些是由于没加注解,如下图示: 图2 关于参数不一致问题,主要是由于图1中“选择文件”左侧那个key值(上图中是files),与图2中第115行中的那个参数Mul ...
分类:
Web程序 时间:
2019-08-11 12:31:16
阅读次数:
406
一、使用ansible格式化 二、ansible挂载 src #要被挂载的目录或文件 path #指定挂载点的路径 fstype #指定挂载时的文件系统类型 opts #在挂载时,指定挂载参数信息 state #state=mounted,在fstab文件中的备份将被激活挂载或适当配置,如果指定mo ...
分类:
其他好文 时间:
2019-08-09 19:15:38
阅读次数:
83
需要将所有support包中的design模块移除 implementation('com.android.support:appcompat-v7:27.1.0', { exclude group: 'com.android.support', module: 'design'})implemen ...
分类:
移动开发 时间:
2019-08-04 19:26:50
阅读次数:
138
public abstract class BaseActivity<P extends IBasePresenter> extends AppCompatActivity implements IBaseView { private P mPresenter; protected abstract ...
分类:
其他好文 时间:
2019-08-04 19:17:00
阅读次数:
90
Description Bessie wants to navigate her spaceship through a dangerous asteroid field in the shape of an N x N grid (1 <= N <= 500). The grid contains ...
分类:
其他好文 时间:
2019-08-02 22:48:18
阅读次数:
116