嘟嘟嘟 首先可以知道,对于在哪个时候攻占一个城市,应该是他的最短到达时间和最早进入时间的最大值(max(d1[i], d2[i]))。 最短到达时间:就是朴素的最短路d1[i]。 最早进入时间:设所有到达有他的结界发生器的城市为j,那么应该是在所有最短时间中取max,作为d2[i]。 于是就可以用d ...
分类:
其他好文 时间:
2018-08-24 14:49:57
阅读次数:
155
2017年1月11日, 星期三yum安装的四种方式一、默认:从国外下载二、国内:从阿里获取 http://mirrors.aliyun.com1. cd /etc/yum.repos.d2. yum install wget -y3. 结果:可以看到,yum安装所指向的baseurl由国外--htt... ...
分类:
其他好文 时间:
2018-08-23 02:05:46
阅读次数:
173
1.一次性任务计划:at 1)添加 在18:16时候重启服务器 at 18:16 >at init 6 >at ctrl+d2)查看 atq 1 Mon Aug 20 21:09:00 2018 a root(job号是1 ...)3)删除 atrm 1 #删除job号为1的job 2.周期性任务计 ...
分类:
系统相关 时间:
2018-08-20 23:51:28
阅读次数:
339
口语 task3 逻辑关系 R: What / \ r1 r2L: | | d1 d2 答题模板 In the student's letter / announcement / news report / reading material, the school is going to /this ...
分类:
其他好文 时间:
2018-08-08 11:09:32
阅读次数:
131
测评传送门 真正意义上学会快排,以前一直调的sort…… 但毕竟能手写就手写,对自己也是一种锻炼 解析: 快排说白了就是把要排的一行数切成一半,记录下中间值,在左半部分找到比中间值大的(记d1),再在右半部分找到比中间值小的(记d2) 如果d1在d2的左边,就交换他们,d1后推一格,d2前推一格,继 ...
分类:
编程语言 时间:
2018-08-04 21:04:58
阅读次数:
134
You are given an array d1,d2,…,dnd1,d2,…,dn consisting of nn integer numbers. Your task is to split this array into three parts (some of which may be ...
分类:
其他好文 时间:
2018-08-04 12:05:45
阅读次数:
145
监控mysql上客户端的连接数:via1.py#!/usr/bin/pythonimportosimportdatetimed1=datetime.datetime.now().strftime("%Y-%m-%d%H:%M")d2=datetime.datetime.now().strftime("%Y-%m-%d")os.system(‘/bin
分类:
数据库 时间:
2018-07-24 10:17:35
阅读次数:
184
先来一篇解释比较多的实例 https://www.cnblogs.com/super-d2/p/4154541.html No route info of this topic, PushTopic 这个问题 是因为没有fastjson的包.. 网上也有其他的解释 https://blog.csdn ...
分类:
其他好文 时间:
2018-07-18 13:55:12
阅读次数:
112
直接抄ppt好了……来自SiriusRen 注意只用对根判断是否哟留下儿子 cpp include include using namespace std; const int N=100005; long long n,ans,h[N],cnt,fa[N],dis[N],d1,d2,l1,l2,c ...
分类:
其他好文 时间:
2018-07-15 17:37:14
阅读次数:
168
=VLOOKUP(F2,IF({1,0},D2:D10,C2:C10),2,),用F2作为查找条件,对D列进行查找,如果改成{0,1}则是对C列为查找范围。返回内存数组,对F2进行精确查找。 为什么写if({1,0}, , ) 而不写 if(1, , ),是因为{1,0}其实返回的是两列数据,第一列 ...
分类:
其他好文 时间:
2018-07-05 19:50:32
阅读次数:
126