错误 useSSL 修改成 false 现在启动成功 (写者的项目快上线了,欢迎大家加入开发)gitee-> https://gitee.com/pig_farmer_x/pigs-blog.git ...
分类:
其他好文 时间:
2020-04-20 23:58:43
阅读次数:
109
字符串hash+二分答案 "Palindrome poj 3974" 求一个字符串的最长回文子串。 因为在学字符串hash,所以这里用二分答案和字符串hash来做,复杂度是O(N log N),据说manacher算法可以在O(N)解决这个问题,但是我还没学哈哈哈哈以后补吧 题解:枚举回文子串的中心 ...
分类:
其他好文 时间:
2020-04-20 21:27:55
阅读次数:
60
This is the hard version of the problem. The difference is the constraint on the sum of lengths of strings and the number of test cases. You can make ...
分类:
编程语言 时间:
2020-04-18 14:10:40
阅读次数:
87
codeforces-1335-E Three Blocks Palindrome 传送门: easy:https://codeforces.com/contest/1335/problem/E1 hard:https://codeforces.com/contest/1335/problem/E2 ...
分类:
其他好文 时间:
2020-04-14 22:44:12
阅读次数:
74
就是我这个菜鸡,赛时写出了 E2 的做法,但是算错复杂度,导致以为自己的做法只能AC E1,就没交到 E2 上,然后赛后秒A..... 题意 定义一种字串为形如:$[\underbrace{a, a, \dots, a}_{x}, \underbrace{b, b, \dots, b}_{y}, \ ...
分类:
其他好文 时间:
2020-04-14 12:23:10
阅读次数:
63
题面 题意 给定一个长度为 n 的数列 定义要求的回文子数列满足下图条件 其中 x 与 y 可以为 0 即这个回文子数列可以是 数字完全相同 的一个子数列 也可以是 只包含两种数字 ,且其中一种 平均分布 在另一种数字的两侧 求出最长的回文子数列长度 解题思路 在输入时往vector里记录下每个数字 ...
分类:
其他好文 时间:
2020-04-14 09:15:49
阅读次数:
62
题面 题意/解题思路 直接延用 Easy 版本的想法即可 详解见上一篇博客 "Codeforces 1335E1 Three Blocks Palindrome (easy version)" 完整程序 (93ms/2000ms) c++ include using namespace std; i ...
分类:
其他好文 时间:
2020-04-14 09:13:15
阅读次数:
59
一 引入maven依赖 compile 'io.springfox:springfox-swagger2:2.9.2'compile 'io.springfox:springfox-swagger-ui:2.9.2'compile "io.springfox:springfox-bean-valid ...
分类:
编程语言 时间:
2020-04-13 16:43:26
阅读次数:
165
前几天用JSOUP写爬虫Demo时,遇到这个异常 百度了一番原来是因为目标站点启用了HTTPS 而缺少安全证书时出现的异常,大概解决办法有2种: 1. 手动导入安全证书(嫌麻烦 没使用); 2. 忽略证书验证。 相对于来说简单一点,在发起请求前调用这个方法,问题解决。 // 包不要导错了 impor ...
分类:
其他好文 时间:
2020-04-12 16:47:40
阅读次数:
84