- 博客(4)
- 收藏
- 关注
原创 Subpalindromes(nlogn线段树判断回文串,未填坑)
题目链接 未完成代码 #include <bits/stdc++.h> #define ll long long using namespace std; const int N = 101000; int w[N]; int idx[N]; struct node{ int ldata,l,r,rdata,len; node(){len = -1;} }tre...
2018-06-21 20:55:25 209
原创 sdut连续序列(找3个字串使其和最大)
4233 –&amp;gt; 连续序列 var stime = &quot;1528547353&quot;; function updatetime(){ stime ++; var etime = new Date(parseInt(stime)*1000); $(&quot;#dt&quot;).html(etime.toString(&quot
2018-06-09 20:35:48 168
原创 线段树模板
查询区间和 区间修改,区间查询 #include&amp;lt;bits/stdc++.h&amp;gt; #define LL long long #define N 100000 using namespace std; int i,n,m,h,t; LL data; struct node{ LL data,lazy,len; }tree[4*N]; void build(int root,...
2018-06-06 21:15:49 132
原创 堆优化的Dijkstra(cmp函数的写法)
#include &lt;bits/stdc++.h&gt; using namespace std; const int N=11000; int dis[11000]; vector&lt;int&gt;len[N]; vector&lt;int&gt;edge[N]; struct cmp{ bool operator()(int x,int y){ return ...
2018-06-04 20:43:07 271
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人