码迷,mamicode.com
首页 >  
搜索关键字:rmq    ( 1013个结果
POJ 3368 Frequent values RMQ ST算法/线段树
Frequent valuesTime Limit:2000MSMemory Limit:65536KTotal Submissions:15229Accepted:5550DescriptionYou are given a sequence o...
分类:编程语言   时间:2015-09-01 19:58:21    阅读次数:217
HDOJ 题目4691 Front compression(后缀数组+RMQ最长前缀)
Front compression Time Limit: 5000/5000 MS (Java/Others)    Memory Limit: 102400/102400 K (Java/Others) Total Submission(s): 1652    Accepted Submission(s): 604 Problem Description Front c...
分类:编程语言   时间:2015-08-29 14:06:05    阅读次数:212
BZOJ 题目3172: [Tjoi2013]单词(AC自动机||AC自动机+fail树||后缀数组暴力||后缀数组+RMQ+二分等五种姿势水过)
3172: [Tjoi2013]单词 Time Limit: 10 Sec  Memory Limit: 512 MB Submit: 1890  Solved: 877 [Submit][Status][Discuss] Description 某人读论文,一篇论文是由许多单词组成。但他发现一个单词会在论文中出现很多次,现在想知道每个单词分别在论文中出现多少次。 Input ...
分类:编程语言   时间:2015-08-27 18:50:12    阅读次数:387
POJ 题目 3693 Maximum repetition substring(后缀数组+RMQ+枚举求最小字典序的重复次数最多的子串)
Maximum repetition substring Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 8067   Accepted: 2463 Description The repetition number of a string is defined...
分类:编程语言   时间:2015-08-26 14:05:27    阅读次数:176
SPOJ题目687 Repeats(后缀数组+RMQ求重复次数最多的子串的重复次数)
REPEATS - Repeats no tags  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, the string s = abaabaabaaba...
分类:编程语言   时间:2015-08-26 12:05:50    阅读次数:226
hdu2586 How far away ?(LCA->RMQ)
题目链接:点击打开链接 题意描述:给定一棵树,找出树中任意两点之间的距离? 解题思路: 1、dfs预处理达到欧拉序列 2、使用RMQ找出最近公共祖先 3、找出根到任意一点的距离,答案为dis[f]+dis[t]-2*dis[rt] 代码: #include #include #include #include #define MAXN 40010 using ...
分类:其他好文   时间:2015-08-25 23:56:36    阅读次数:194
POJ_2823_Sliding Window(RMQ)
题意:有n个数,每次从左到右选取k个数,第一行选取每个区间中的最小值输出,第二行每次选取区间中的最大值输出。...
分类:Windows程序   时间:2015-08-21 23:22:55    阅读次数:226
POJ 3368 Frequent values(RMQ)
Frequent values Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 15134   Accepted: 5519 Description You are given a sequence of n integers a1 , a2 , ... , an ...
分类:其他好文   时间:2015-08-21 17:12:56    阅读次数:141
POJ 3264 Balanced Lineup(RMQ/线段树)
Balanced Lineup Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 40312   Accepted: 18936 Case Time Limit: 2000MS Description For the daily milking, Farme...
分类:其他好文   时间:2015-08-21 15:35:08    阅读次数:170
线段树模板(区间最小值优化 版) (RMQ with Shifts)
题意: #include #include #include #include #include using namespace std; const int maxn =100010; int RMQ[maxn<<2]; int str[maxn]; int N,M; char ctr[35]; int total[35],cnt; int build(int first,int ...
分类:其他好文   时间:2015-08-20 10:39:13    阅读次数:241
1013条   上一页 1 ... 67 68 69 70 71 ... 102 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!