随笔分类 - 【模板】
摘要:Windows: #include<cstdio> #include<cstdlib> #include<ctime> typedef double db; using namespace std; int main() { for(int t = 1; t <= 1000; ++t) { syst
阅读全文
摘要:CODE1: DFS序+RMQ Time cost:1106ms CODE2: 树上倍增 Time cost:1157ms CODE3: 树剖 Time cost:1013ms
阅读全文
摘要:一、KMP CODE: 二、manacher CODE: 三、AC_automaton Code:
阅读全文
摘要:1 #include 2 #include 3 #include 4 #include 5 6 #define rep(i,a,n) for(int i = a;i = a;i--) 8 using namespace std; 9 typedef double D; 10 #define eps 1e-6 11 const int N = 15; 12 //head 13 i...
阅读全文
摘要:1 // luogu-judger time:1341ms 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 typedef long long ll; 9 #define ms(a,b) memset(a,b,sizeof a) 10 #define inf 2147...
阅读全文
摘要:不定期更新 OIer 知识点 一 字符串 (1) Knuth-Morris-Pratt(2) Hash hash表(3) Trie(4) Aho-Corasick automaton(5) Suffix-Tree(后缀树)(6) Manacher(7) Huffman 二 动态规划(1) 背包dp(
阅读全文

浙公网安备 33010602011771号