"Practice Link" J. Rikka with Nickname 题意: 给出$n$个字符串,要求依次合并两个串$s, t$,满足将$t$合并到$s$中变成$r$,使得$s$是$r$的前缀,并且$t$是$r$的一个子序列。 思路: 动态维护序列自动机,贪心插入即可。 代码: c++ in ...
分类:
其他好文 时间:
2019-06-30 09:16:22
阅读次数:
82
Biologists from the University of Utah including William Anderegg, Anna Trugman, and David Bowling have led new research and discovered that some tree ...
分类:
其他好文 时间:
2019-06-29 10:33:01
阅读次数:
100
matlab中,字符串使用单引号括起来的字符序列 >>xm='Central South University' >>xm(1:3) ans= Cen 截取1--3这三个字符,就是Cen 如果字符串中有单引号,要用两个单引号来表示 >>'I''m a teacher' ans= I'm a teac ...
分类:
其他好文 时间:
2019-06-27 21:48:24
阅读次数:
1717
(In)Stability for the Blockchain: Deleveraging Spirals and Stablecoin Attacks Cornell University稳定币的市场行为,有很多经济学的概念。Validating IP Prefixes and AS-Paths ...
分类:
其他好文 时间:
2019-06-14 12:43:13
阅读次数:
103
COMP2741/8741 Page 1 of 9 Copyright Flinders University 2019COMP2741/8714: Application DevelopmentAssignment 1: GUI Implementation and TestingYouTube ...
分类:
其他好文 时间:
2019-06-12 20:00:30
阅读次数:
71
RFC2119 https://www.ietf.org/rfc/rfc2119.txt Network Working Group S. Bradner Request for Comments: 2119 Harvard University BCP: 1... ...
分类:
其他好文 时间:
2019-06-10 10:43:58
阅读次数:
218
SEED Labs – Race Condition Vulnerability Lab 1Race Condition Vulnerability LabCopyright 2006 - 2016 Wenliang Du, Syracuse University.The development o ...
分类:
其他好文 时间:
2019-06-06 20:55:19
阅读次数:
126
优先队列 + 思维 不然想到肯定是先杀能杀的,这样攻击力就会越来越高,杀的也就越多。 所以可以开k个优先队列,每一个属性属于一个队列,一开始把所有怪放进第一个队列里,满足击杀条件就一次往之后的队列扔。 当扔到第k个队列时,如果能击杀,就可以击杀了。 这样能在最短的时间内统计能够击杀的数量。。 inc ...
分类:
其他好文 时间:
2019-05-30 17:33:52
阅读次数:
116
dijkstra 应该是签到题了。。最短路裸题,优先队列维护就行了 include define INF 0x3f3f3f3f define full(a, b) memset(a, b, sizeof a) define FAST_IO ios::sync_with_stdio(false), c ...
分类:
其他好文 时间:
2019-05-29 14:57:53
阅读次数:
102
全排列枚举 这题不能用贪心的。。反例很多。。 有一个最暴力的方法就是枚举所有全排列,在n次交换内能复原就更新答案。 为了方便复原,我们枚举的全排列是原数的每个位数的位置的全排列。 include define INF 0x3f3f3f3f define full(a, b) memset(a, b, ...
分类:
其他好文 时间:
2019-05-28 17:09:37
阅读次数:
93