码迷,mamicode.com
首页 >  
搜索关键字:spoj    ( 889个结果
IOI 2009:Mecho
IOI2009 Mecho Time Limit: 10000ms Memory Limit: 262144KB This problem will be judged on SPOJ. Original ID: CTOI09_164-bit integer IO format: %lld Java
分类:其他好文   时间:2016-02-25 19:52:04    阅读次数:240
后缀自动机(SAM) :SPOJ LCS - Longest Common Substring
LCS - Longest Common Substring no tags A string is finite sequence of characters over a non-empty finite set Σ. In this problem, Σ is the set of lower
分类:其他好文   时间:2016-02-25 00:04:38    阅读次数:183
spoj 1812 LCS2(SAM+DP)
Longest Common Substring II Time Limit: 236MS Memory Limit: 1572864KB 64bit IO Format: %lld & %llu Description A string is finite sequence of characte
分类:其他好文   时间:2016-02-18 16:22:33    阅读次数:310
BZOJ 2780: [Spoj]8093 Sevenk Love Oimaster( 后缀数组 + 二分 + RMQ + 树状数组 )
全部串起来做SA, 在按字典序排序的后缀中, 包含每个询问串必定是1段连续的区间, 对每个询问串s二分+RMQ求出包含s的区间. 然后就是求区间的不同的数的个数(经典问题), sort queries + BIT 就行了.时间复杂度O(N log N). 速度垫底了QAQ 你们都会SAM。。。。--
分类:编程语言   时间:2016-02-14 00:25:20    阅读次数:350
BZOJ 1002 + SPOJ 104 基尔霍夫矩阵 + 一个递推式。
BZOJ 1002 高精度 + 递推 f[1] = 1; f[2] = 5; f[i] = f[i - 1] * 3 - f[i - 2] + 2; SPOJ 104 裸 + 不用Mod 1 #include <cstdio> 2 #include <cstring> 3 #include <cst
分类:其他好文   时间:2016-02-12 22:12:25    阅读次数:323
SPOJ AEROLITE
题目链接: http://www.spoj.com/problems/AEROLITE/en/ -------------------------------------------------------------------------------------- 虽然没有明确的区间,但做法还是
分类:其他好文   时间:2016-02-03 11:50:20    阅读次数:212
SPOJ QTREE 系列解题报告
题目一 : SPOJ 375 Query On a Tree http://www.spoj.com/problems/QTREE/ 给一个树,求a,b路径上最大边权,或者修改a,b边权为t。 1 #include <cstdio> 2 #include <iostream> 3 #include
分类:其他好文   时间:2016-02-01 22:31:39    阅读次数:412
SPOJ 4206 Fast Maximum Matching (二分图最大匹配 Hopcroft-Carp 算法 模板)
题目大意:有n1头公牛和n2头母牛,给出公母之间的m对配对关系,求最大匹配数。数据范围: 1 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 struct Hopcroft_Carp{ 9 ...
分类:编程语言   时间:2016-01-10 18:36:09    阅读次数:707
SPOJ 4110 Fast Maximum Flow (最大流模板)
题目大意:无向图,求最大流。算法讨论:Dinic可过。终于我的常数还是太大。以后要注意下了。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 typede...
分类:其他好文   时间:2016-01-10 18:31:08    阅读次数:183
spoj 694 Distinct Substrings 后缀数组
题目链接求一个字符串中不相同的子串的个数。子串的总数是(n+1)*n/2, 减去height[i]就可以。#include #include #include #include #include #include #include #include #include #include #includ...
分类:编程语言   时间:2016-01-04 11:40:17    阅读次数:219
889条   上一页 1 ... 50 51 52 53 54 ... 89 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!