
权值线段树
文章平均质量分 87
做不完的ACM
加油,努力
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
hrbust2371权值线段树+并查集
题目链接:http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=2371讲解视频:https://www.bilibili.com/video/av16552942?from=search&seid=6401426487448027126题解:权值线段树+并查集很水,众人皆知。#in...原创 2018-05-21 21:04:57 · 285 阅读 · 1 评论 -
主席树HDU2665,区间第k小。
#include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 7; struct node { int lc, rc, v; node () {lc=rc=v=0;} }t[maxn*20]; int tot; int a[maxn]; int b[maxn]; int rt[maxn]; i...原创 2018-05-23 17:15:03 · 163 阅读 · 0 评论 -
Codeforces 1006E Military Problem
题目链接:http://codeforces.com/contest/1006/problem/E 题面: In this problem you will have to help Berland army with organizing their command delivery system. There are nn officers in Berland army. The fi...原创 2018-07-17 10:07:29 · 806 阅读 · 0 评论