
数据结构
文章平均质量分 76
SSCTTSQQ
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #457 (Div. 2) E
赛后补题: 树链剖分套区间更新线段树 注意lca的求法官方题解:http://codeforces.com/blog/entry/57223code:#include<iostream>#include<cstring>#include<cstdio>#include<algorithm>#include<map>...原创 2018-01-22 21:05:05 · 258 阅读 · 0 评论 -
BZOJ 3223 & UVA19220
题目link:1)http://www.lydsy.com/JudgeOnline/problem.php?id=3223 2) https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3073splay标准操作:区间翻转与...原创 2018-03-21 12:43:48 · 201 阅读 · 0 评论 -
BZOJ 3729: Gty的游戏
题目链接:https://www.lydsy.com/JudgeOnline/problem.php?id=3729题解:阶梯博弈+splay树维护dfs序列因为splay操作被tle到死code:#include <iostream>#include <cstring>#include <cstdio>#include <algorithm>...原创 2018-03-28 19:54:23 · 327 阅读 · 0 评论 -
CodeForces - 343D Water Tree
题目链接:http://codeforces.com/problemset/problem/343/D题意:D. Water Treetime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMad scientist Mike has construc...原创 2018-04-07 10:22:24 · 288 阅读 · 0 评论 -
Wannafly挑战赛14 B-前缀查询
题目:https://www.nowcoder.com/acm/contest/81/B在一个 Minecraft 村庄中,村长有这一本小写字母构成的名册(字符串的表), 每个名字旁边都记录着这位村民的声望值,而且有的村民还和别人同名。 随着时间的推移,因为没有村民死亡,这个名册变得十分大。 现在需要您来帮忙维护这个名册,支持下列 4 种操作: 1. 插入新人名 si,声望为 ai 2. ...原创 2018-04-24 13:09:54 · 202 阅读 · 0 评论 -
HYSBZ - 3261 最大异或和
题目链接:https://www.lydsy.com/JudgeOnline/problem.php?id=32613261: 最大异或和Time Limit: 10 Sec Memory Limit: 512 MBSubmit: 2682 Solved: 1091[Submit][Status][Discuss]Description给定一个非负整数序列{a},初始长度为N。有M个操作,有以...原创 2018-05-02 11:31:36 · 290 阅读 · 0 评论 -
POJ 2104&&51nod 1175&&Joyoi 动态排名
静态区间第K大题目链接:http://poj.org/problem?id=2104K-th NumberTime Limit: 20000MS Memory Limit: 65536KTotal Submissions: 64800 Accepted: 22822Case Time Limit: 2000MSDescriptionYou are working for Macrohard com...原创 2018-04-29 00:47:28 · 320 阅读 · 0 评论 -
POJ 2201 &&HDU 6305 (笛卡尔树的应用)
POJ 2201sol:笛卡尔树模板题,笛卡尔树的介绍可以参考 http://memphis.is-programmer.com/posts/46317.html。code:#include<iostream>#include<cstring>#include<algorithm>using namespace std;typedef ...原创 2018-07-27 12:31:02 · 524 阅读 · 0 评论