题目 Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 i ...
分类:
其他好文 时间:
2020-05-19 01:04:00
阅读次数:
58
``` #include #include #include #include #include using namespace std; typedef long long LL; const int N = 2500001; int e[N],ne[N],idx,h[N],w[N]; int v... ...
分类:
其他好文 时间:
2020-05-18 14:47:07
阅读次数:
69
服务端生成密钥和公钥 ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty ...
分类:
其他好文 时间:
2020-05-17 01:30:10
阅读次数:
83
题面 一群小丑演员,以其出色的柔术表演,可以无限量的钻进同一辆汽车中,而闻名世界。 现在他们想要去公园玩耍,但是他们的经费非常紧缺。 他们将乘车前往公园,为了减少花费,他们决定选择一种合理的乘车方式,可以使得他们去往公园需要的所有汽车行驶的总公里数最少。 为此,他们愿意通过很多人挤在同一辆车的方式, ...
分类:
其他好文 时间:
2020-05-16 19:14:40
阅读次数:
63
ssh免密登录 1.切入/root/.ssh路径下,使用 ssh-keygen获取主机key。 注:直接回车即可,无需输入任何信息。 [root@likeadmin ~/.ssh]# ssh-keygen Generating public/private rsa key pair. Enter f ...
分类:
其他好文 时间:
2020-05-16 00:38:49
阅读次数:
64
动机 的`insert std::pair std::map::iterator std::pair std::map first second`,让人不知所措。 include include int main() { typedef std::map Map; Map map; std::pai ...
分类:
编程语言 时间:
2020-05-15 15:32:27
阅读次数:
54
struct cmp { bool operator ()(Pair a,Pair b) //你想要定义的比较函数 { if(a.second-a.first==b.second-b.first) return a.first>b.first; return a.second-a.first<b.s ...
分类:
编程语言 时间:
2020-05-15 15:15:46
阅读次数:
126
"题目传送门" 还是 "视频题解" 。这次录的心态有点炸,录完了发现没开麦克风。。又得再录一次。 题目不算很难,可能就F需要好好想一下,一开始写了个假的$dp:dp[i][j][0/1]$表示当前在$(i,j)$位置,$a_{i,j}$是否发生了变化,维护一个$pair$,一个是当前最小花费,另一个 ...
分类:
其他好文 时间:
2020-05-15 13:43:43
阅读次数:
82
vscode 非常帮的插件 "点击链接跳转" 1. 翻译 2. Auto Close Tag 3. Auto Rename Tag 4. Beautify 5. Bracket Pair Colorizer 6. Chinese Language 7. ESLint 8. Markdown Tabl ...
分类:
其他好文 时间:
2020-05-14 11:28:26
阅读次数:
73
当你想要对节点进行协调时,PAIR套接字就不怎么合适了,这也是线程和节点之间的不同之处。一般来说,节点是来去自由的,而线程则较为稳定。使用PAIR套接字时,若远程节点断开连接后又进行重连,PAIR不会予以理会。 第二个区别在于,线程的数量一般是固定的,而节点数量则会经常变化。让我们以气象信息模型为基 ...
分类:
其他好文 时间:
2020-05-14 11:01:21
阅读次数:
76