摘要:
题目链接:https://www.luogu.org/problemnew/show/P3884 对方不想和你说话并向你扔了一个lca模板。 include include include include using namespace std; const int maxlog = 10; con 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P3375 精华:在每次失配后不从头匹配而是尝试找一个新的开始并且是新开始的位置最长的相同前缀和后缀。 实际上KMP是一种自己匹配自己的模式。好好理解qaq include include include incl 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P3709 离散化+区间众数..? include include include include using namespace std; const int maxn = 500000+10; inline i 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P4113 为什么要卡莫队!为什么加强的这么毒瘤! 莫队可以拿100分剩下三个点没治了 // luogu judger enable o2 include include include include inclu 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P1972 真是不懂为什么要卡莫队! include include include include include using namespace std; const int maxn = 2000100; i 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P1137 topsort + DP include include include include include using namespace std; const int maxn = 100001; st 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P1186 邻接表开大开小真的奇妙,毒瘤玩意,再您妈的见。 include include include include include using namespace std; const int maxn = 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P1807 求最大路?就是把权值取相反数跑最短路。 include include include include include include using namespace std; const int ma 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P4711 要细心模拟 include include include include include using namespace std; char s[10001]; int k; double nans1 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P2319 include include include include using namespace std; const int maxn = 2001; int vis[maxn], a[maxn][ma 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P1640 数据有点水吧,从属性值连向对应武器编号。 枚举属性值匹配,遇到第一个无法匹配的直接跳出就好惹~。 include include include include using namespace std; 阅读全文
摘要:
题目链接:https://www.luogu.org/problemnew/show/P3369 include include include define ri register define il inline using namespace std; const int maxn = 100 阅读全文
摘要:
题目链接: "https://www.luogu.org/problemnew/show/P2234" 本来是一道打算练习splay的题目 发现暴力可以过啊。。 include include include include define inf 0x7fffffff define ri regis 阅读全文
摘要:
"题目链接:https://www.luogu.org/problemnew/show/P1494" include include include include using namespace std; const int maxn = 50000+10; inline long long re 阅读全文