<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[LZY_Starry的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/LZY_Starry</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; LZY_Starry]]></copyright><item><title><![CDATA[2021-07-21 P3375 【模板】KMP字符串匹配]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/118968827</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/118968827</guid><author>LZY_Starry</author><pubDate>Wed, 21 Jul 2021 16:03:54 +0800</pubDate><description><![CDATA[P3375 【模板】KMP字符串匹配
很久没看看算法了。
这是复习。

https://www.luogu.com.cn/problem/P3375

#include&lt;cstdio&gt;
#include&lt;iostream&gt;
#include&lt;cstring&gt;
#include&lt;vector&gt;

using namespace std;

const int maxn = 1e6 + 7;

char s1[maxn], s2[maxn];

int k_nex]]></description><category></category></item><item><title><![CDATA[Verilog入门笔记]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/78881538</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/78881538</guid><author>LZY_Starry</author><pubDate>Sat, 23 Dec 2017 18:45:52 +0800</pubDate><description><![CDATA[先贴两个链接： 
http://blog.youkuaiyun.com/alexanderrr/article/details/51615463 
http://blog.chinaunix.net/uid-21227800-id-65936.html1.Verilog是种描述语言，与C语言有本质不同，原理上类似于模块的拼接，与语句的顺序无关。 
2.reg类型相当于寄存器，wire相当于导线，assign也相]]></description><category></category></item><item><title><![CDATA[ACM赛前准备]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/78669288</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/78669288</guid><author>LZY_Starry</author><pubDate>Wed, 29 Nov 2017 20:02:18 +0800</pubDate><description><![CDATA[热身赛测试机器：long long 用 %lld  %I64d 
CE 罚时 
有没有RE回显, MLE 
1s跑多少数量级 
C++11的支持 
重启复原硬盘与否 
bits/stdc++.h存在与否 
printf %Lf long double 支持 
_builtin 系列支持 
递归深度、栈大小 
行末回车, 空格(顺便测PE回显) 
打表文件大小限制带的资料： 
lzy: 英语词典, 刘]]></description><category></category></item><item><title><![CDATA[【LIS】【模板】nlogn算法]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/78665453</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/78665453</guid><author>LZY_Starry</author><pubDate>Wed, 29 Nov 2017 15:01:32 +0800</pubDate><description><![CDATA[//最长上升序列nlogn 
#include<bits/stdc++.h>
using namespace std;const int maxn=4e4+7;int d[maxn],a[maxn];int main()
{
    int i,j,k,p,t;
    scanf("%d",&t);
    while(t--)
    {
        scanf("%d",&p);]]></description><category></category></item><item><title><![CDATA[【费用流】double模板]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/78645661</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/78645661</guid><author>LZY_Starry</author><pubDate>Mon, 27 Nov 2017 15:40:52 +0800</pubDate><description><![CDATA[https://vjudge.net/contest/201468#problem/G 
一道费用流，原版来自通酱，被zzb魔改为可用于费用为double 
http://www.cnblogs.com/autsky-jadek/p/4149096.html#include<cstdio>
#include <iostream>
#include<algorithm>
#include<cstrin]]></description><category></category></item><item><title><![CDATA[莫队算法模板]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/78615742</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/78615742</guid><author>LZY_Starry</author><pubDate>Thu, 23 Nov 2017 15:57:42 +0800</pubDate><description><![CDATA[一道简单的莫队算法题： 
https://vjudge.net/contest/171364#problem/I 
莫队的一般写法：// CodeForces 86D
#include<bits/stdc++.h>
#define pb push_back 
#define mp make_pair
using namespace std;const int maxn=2e5+7;
typedef]]></description><category></category></item><item><title><![CDATA[Trie模板]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/78087025</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/78087025</guid><author>LZY_Starry</author><pubDate>Mon, 25 Sep 2017 16:55:59 +0800</pubDate><description><![CDATA[简单trie： 
http://hihocoder.com/problemset/problem/1014// http://hihocoder.com/problemset/problem/1014
#include<bits/stdc++.h>
#define pb push_back 
#define mp make_pair
using namespace std;const int max]]></description><category></category></item><item><title><![CDATA[AtCoder Regular Contest 080 E - Young Maids [拓扑序+分治+奇偶rmq]||[分块]]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/76890726</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/76890726</guid><author>LZY_Starry</author><pubDate>Tue, 08 Aug 2017 12:00:48 +0800</pubDate><description><![CDATA[http://arc080.contest.atcoder.jp/tasks/arc080_c 
其实细想其本质是一道拓扑序的题，选了当前点，才能选分裂出的三段。#include<bits/stdc++.h>
#define pb push_back 
#define mp make_pair
using namespace std;const int maxn=2e5+7;
typedef lon]]></description><category></category></item><item><title><![CDATA[2-sat]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/76890366</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/76890366</guid><author>LZY_Starry</author><pubDate>Tue, 08 Aug 2017 11:56:12 +0800</pubDate><description><![CDATA[一道2-sat的水题 
https://vjudge.net/contest/176902#problem/B一直不太清楚2-sat是什么，不过貌似已经掌握用dfs判2-sat的方法。#include<bits/stdc++.h>
#define pb push_back 
#define mp make_pair
using namespace std;const int maxn=1;
type]]></description><category></category></item><item><title><![CDATA[(或许可以出题？]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/76824356</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/76824356</guid><author>LZY_Starry</author><pubDate>Mon, 07 Aug 2017 11:06:58 +0800</pubDate><description><![CDATA[1.LLRR 
http://opentrains.snarknews.info/~ejudge/team.cgi?SID=07ce0b0b8b50b3dd&action=2&lt=12.接力赛 
http://opentrains.snarknews.info/~ejudge/team.cgi?SID=f7174dac67215648&action=2&lt=13、4. atcoder  
htt]]></description><category></category></item><item><title><![CDATA[数位dp]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/76651212</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/76651212</guid><author>LZY_Starry</author><pubDate>Thu, 03 Aug 2017 21:32:25 +0800</pubDate><description><![CDATA[简单的数位dp 
http://codeforces.com/contest/758/problem/D在数位dp中要特别注意0的存在，有时虽无前导0，但单有一个0是合法的#include<bits/stdc++.h>
#define pb push_back 
#define mp make_pair
#define pow powe
using namespace std;const int m]]></description><category></category></item><item><title><![CDATA[挖坑待填]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/76651008</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/76651008</guid><author>LZY_Starry</author><pubDate>Thu, 03 Aug 2017 21:13:15 +0800</pubDate><description><![CDATA[https://vjudge.net/contest/175594#problem/C 线段树查询最右边的0的操作，也可分块暴力https://vjudge.net/contest/175594#problem/A Gty妹子序列等一系列专题]]></description><category></category></item><item><title><![CDATA[KMP]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/76599484</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/76599484</guid><author>LZY_Starry</author><pubDate>Wed, 02 Aug 2017 22:36:53 +0800</pubDate><description><![CDATA[先贴一个讲的很好很详细的blog 
http://blog.youkuaiyun.com/v_july_v/article/details/7041827]]></description><category></category></item><item><title><![CDATA[Trie（前缀树，字典树）]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/76598633</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/76598633</guid><author>LZY_Starry</author><pubDate>Wed, 02 Aug 2017 21:15:08 +0800</pubDate><description><![CDATA[It’s advantage is, LCP (Longest Common Prefix) of two of these strings is the LCA (Lowest Common Ancestor) of their nodes in the trie(a node that we can build the string by writing down the characters]]></description><category></category></item><item><title><![CDATA[hdu 1874 最短路练习]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/75331207</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/75331207</guid><author>LZY_Starry</author><pubDate>Tue, 18 Jul 2017 21:56:57 +0800</pubDate><description><![CDATA[题目链接：http://acm.hdu.edu.cn/showproblem.php?pid=1874—————— 
贴上一些代码，其目的主要是记录数组模拟邻接表的写法，几种“<”重载的方法，以及spfa和dijkstra版spfa]]></description><category></category></item><item><title><![CDATA[结构体相关]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/75267796</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/75267796</guid><author>LZY_Starry</author><pubDate>Mon, 17 Jul 2017 20:35:32 +0800</pubDate><description><![CDATA[1.结构体初始函数格式：]]></description><category></category></item><item><title><![CDATA[UESTC 2017 Summer Training #2 Div.2]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/75267699</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/75267699</guid><author>LZY_Starry</author><pubDate>Mon, 17 Jul 2017 20:27:18 +0800</pubDate><description><![CDATA[第二场果然开始暴露问题，有些基础的算法未掌握，暴露在数据机构和dp，另外“期望”的算法了解的太少。]]></description><category></category></item><item><title><![CDATA[UESTC 2017 Summer Training #1 Div.2]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/74858263</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/74858263</guid><author>LZY_Starry</author><pubDate>Sun, 09 Jul 2017 11:56:11 +0800</pubDate><description><![CDATA[正式参加的第一场div2大乱斗，也少有的再次感受到自己那种主场作战的自信。实力还不够强，也希望这不是自己最高的rank。]]></description><category></category></item><item><title><![CDATA[仿自qsc的题解Markdown格式]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/74857589</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/74857589</guid><author>LZY_Starry</author><pubDate>Sun, 09 Jul 2017 10:32:20 +0800</pubDate><description><![CDATA[题解Markdown格式]]></description><category></category></item><item><title><![CDATA[背包问题总]]></title><link>https://blog.youkuaiyun.com/LZY_Starry/article/details/74779885</link><guid>https://blog.youkuaiyun.com/LZY_Starry/article/details/74779885</guid><author>LZY_Starry</author><pubDate>Fri, 07 Jul 2017 21:07:21 +0800</pubDate><description><![CDATA[1.01背包
二维->一维
基础的倒序更新（注意更新思想可供其他题借鉴）
“恰”装满：f[i][0]=0; 去掉“恰”：f[i][j]=0; （适用于许多种状态更新的题）
2.完全背包
顺序更新，前赴后继（注意更新思想）
引出简单有效的贪心单价优化
引出二进制压缩思想
3.多重背包
掌握二进制压缩
用单调队列解的O（VN）的解法（待掌握）
4.二维背包
问题描述：两重代价（约束）
解法：加一维
注意]]></description><category></category></item></channel></rss>