模板
bxb666666666
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【模板】小根堆
https://www.luogu.com.cn/problem/P3378 #include<bits/stdc++.h> using namespace std; int n, op, x; priority_queue<int>que; int main() { cin >> n; while(n--) { cin >> op; if(op == 1) { cin >> x; que.push(-x); }原创 2020-09-16 17:00:54 · 157 阅读 · 0 评论 -
带花树
#include<bits/stdc++.h> using namespace std; int n, m, tl, hed[505], mp[505], cnt, f[505], jb[505], pre[505]; int inx, vis[505]; struct node { int v, nxt; }e[500005]; void add(int u, int v) { ...原创 2018-12-08 15:46:03 · 182 阅读 · 0 评论 -
bzoj3676
回文字动机模板 #include<bits/stdc++.h> using namespace std; typedef long long ll; char s[300005]; int n, las, fil[300005], nx[300005][35], len[300005], tot, rt, now, cnt[300005]; ll ans; int newnode(...原创 2018-12-09 20:47:10 · 181 阅读 · 0 评论 -
bzoj2460 线性基模板
#include<bits/stdc++.h> using namespace std; typedef long long ll; int n; ll ans; ll p[1005]; struct node { ll id, w; }e[1005]; bool cmp(node x, node y) { return x.w > y.w; } ll pd(ll x) {...原创 2018-12-09 21:19:09 · 172 阅读 · 0 评论
分享