Problem:给定两个字符串s1和s2,q次查询,每次查询s1中的一段区间[L,R]中有多少个子串在s2中出现过 SOLUTION: 从头开始考虑,我们想知道字串的数量,那我们知道以s1每一个字符为结尾的最长公共字串后,他的所有的后缀都是一个字串 因此 对s2建sam,用s1跑最长公共子串,得到每 ...
分类:
其他好文 时间:
2019-08-15 20:55:18
阅读次数:
100
近日,意外地遇上件不寻常的事情。在解析PDF文件,读取其中内容的时候,对某一文件的处理,始终无法达到预期的效果。 解析方法如下: 经调试发现此时传入的参数值是 ,但在实际执行时并未进入到 条件语句内。这是件怪事。 将条件值与传入值分别拷贝出来,再放到一段简单的测试代码中,会看到结果显示为False。 ...
分类:
其他好文 时间:
2019-08-14 23:31:27
阅读次数:
110
链接:https://codeforces.com/gym/101606 A - Alien Sunset 暴力枚举小时即可。 B - Breaking Biscuits - (Undone) C - Cued In - [水] D - Deranging Hat - (Undone) E - Ed ...
分类:
其他好文 时间:
2019-04-14 09:55:57
阅读次数:
265
1、http://vimcasts.org vim技巧,还有一个高达120美元的课程 目前,正在看http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/,以及使用这个插件:https://github.com/takac/vim-h ...
分类:
系统相关 时间:
2019-04-04 09:27:45
阅读次数:
200
题目链接:http://codeforces.com/problemset/problem/1102/C C. Doors Breaking and Repairing time limit per test 1 second memory limit per test 256 megabytes ...
分类:
其他好文 时间:
2019-01-20 13:56:28
阅读次数:
191
You are policeman and you are playing a game with Slavik. The game is turn-based and each turn consists of two phases. During the first phase you make ...
分类:
其他好文 时间:
2019-01-11 00:47:53
阅读次数:
163
简单说 在 Markdown 文档中,可以直接采用 HTML 标记插入空格(blank space),而且无需任何其他前缀或分隔符。具体如下所示: 插入一个空格 (non-breaking space) 或   或   插入两个空格 (en space) &ensp ...
分类:
其他好文 时间:
2018-12-31 22:37:11
阅读次数:
588
[1]Karparthy博客 Breaking Linear Classifiers on ImageNet http://karpathy.github.io/2015/03/30/breaking-convnets/ [2]Christian等人在ICLR2014最先提出adversarial ...
分类:
其他好文 时间:
2018-11-14 14:19:41
阅读次数:
254
[题目链接] https://codeforces.com/contest/507/problem/E [算法] 首先BFS求出1到其余点的最短路 , N到其余点的最短路,记为distA[]和distB[] 显然 , 我们只需最大化求出的最短路上没有被破坏的边即可 , 不妨用f[i]表示现在在城市i ...
分类:
其他好文 时间:
2018-10-05 20:24:30
阅读次数:
200
Breaking Biscuits 题目描述 This year, Walter’s workplace resolved to try something radically different: they’re going to change the weekly order of biscui ...
分类:
其他好文 时间:
2018-08-28 20:16:32
阅读次数:
363