会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Herumw's Blog
园子
首页
联系
管理
订阅
上一页
1
2
3
4
5
6
7
···
40
下一页
2016年5月1日
UVA 11475 Extend to Palindrome (kmp || manacher || 后缀数组)
摘要: 题目链接:点击打开链接题意:给你一个串,让你在串后面添加尽可能少的字符使得这个串变成回文串。思路:这题可以kmp,manacher,后缀数组三种方法都可以做,kmp和manacher效率较高,时间复杂度是O(n),后缀数组时间复杂度是O(nlogn).思路是求出元串的...
阅读全文
posted @ 2016-05-01 15:53 Herumw
阅读(143)
评论(0)
推荐(0)
2016年4月30日
poj3415 Common Substrings (后缀数组+单调队列)
摘要: Time Limit: 5000MS Memory Limit: 65536KTotal Submissions: 9414 Accepted: 3123DescriptionA substring of a string T is defined as:T(i, k...
阅读全文
posted @ 2016-04-30 17:03 Herumw
阅读(242)
评论(0)
推荐(0)
2016年4月29日
poj3693 Maximum repetition substring (后缀数组+rmq)
摘要: DescriptionThe repetition number of a string is defined as the maximum number R such that the string can be partitioned into R same co...
阅读全文
posted @ 2016-04-29 23:00 Herumw
阅读(100)
评论(0)
推荐(0)
spoj687 REPEATS - Repeats (后缀数组+rmq)
摘要: A string s is called an (k,l)-repeat if s is obtained by concatenating k>=1 times some seed string t with length l>=1. For example, th...
阅读全文
posted @ 2016-04-29 18:15 Herumw
阅读(247)
评论(0)
推荐(0)
2016年4月25日
bzoj3626: [LNOI2014]LCA (树链剖分+离线线段树)
摘要: Description给出一个n个节点的有根树(编号为0到n-1,根节点为0)。一个点的深度定义为这个节点到根的距离+1。设dep[i]表示点i的深度,LCA(i,j)表示i与j的最近公共祖先。有q次询问,每次询问给出l r z,求sigma_{l#include#i...
阅读全文
posted @ 2016-04-25 15:34 Herumw
阅读(146)
评论(0)
推荐(0)
2016年4月20日
bzoj2243 [SDOI2011]染色 (树链剖分+线段树)
摘要: Description给定一棵有n个节点的无根树和m个操作,操作有2类:1、将节点a到节点b路径上所有点都染成颜色c;2、询问节点a到节点b路径上的颜色段数量(连续相同颜色被认为是同一段),如“112221”由3段组成:“11”、“222”和“1”。请你写一个程序依次...
阅读全文
posted @ 2016-04-20 16:41 Herumw
阅读(121)
评论(0)
推荐(0)
SPOJ QTREE- Query on a tree (树链剖分)
摘要: You are given a tree (an acyclic undirected connected graph) with N nodes, and edges numbered 1, 2, 3...N-1.We will ask you to perfrom...
阅读全文
posted @ 2016-04-20 11:04 Herumw
阅读(202)
评论(0)
推荐(0)
2016年4月13日
hdu5662 YJQQQAQ and the function (单调栈)
摘要: Problem DescriptionYJQQQAQ has an array A of length n. He defines a function fl,r,k where l,r,k are positive integers that satisfies l...
阅读全文
posted @ 2016-04-13 11:21 Herumw
阅读(194)
评论(0)
推荐(0)
2016年4月11日
hdu4348 To the moon (主席树 || 离线线段树)
摘要: Problem DescriptionBackgroundTo The Moon is a independent game released in November 2011, it is a role-playing adventure game powered ...
阅读全文
posted @ 2016-04-11 20:15 Herumw
阅读(183)
评论(0)
推荐(0)
2016年4月6日
hdu3565 Bi-peak Number (有上界和下界的数位dp)
摘要: Problem DescriptionA peak number is defined as continuous digits {D0, D1 … Dn-1} (D0 > 0 and n >= 3), which exist Dm (0 Di+1 (m #incl...
阅读全文
posted @ 2016-04-06 21:57 Herumw
阅读(279)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
40
下一页
公告