数据结构
正经人谁在树上做dp
此人不懒但也没写签名
展开
-
并查集 初探
Ubiquitous Religions Description There are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out how many different religions...原创 2019-08-04 13:08:42 · 216 阅读 · 0 评论 -
树状数组 初探 - BenFromHRBUST
洛谷 P1908 逆序对 题目描述 猫猫TOM和小老鼠JERRY最近又较量上了,但是毕竟都是成年人,他们已经不喜欢再玩那种你追我赶的游戏,现在他们喜欢玩统计。最近,TOM老猫查阅到一个人类称之为“逆序对”的东西,这东西是这样定义的:对于给定的一段正整数序列,逆序对就是序列中ai>aj且i<j的有序对。知道这概念后,他们就比赛谁先算出给定的一段正整数序列中逆序对的数目。 Update:数...原创 2019-08-06 16:32:48 · 109 阅读 · 0 评论 -
线段树 初探 - BenFromHRBUST
线段树 初探 Codeforces Round #197 (Div. 2) 339D Problem Description Xenia the beginner programmer has a sequence a, consisting of 2n non-negative integers: a1, a2, …, a2n. Xenia is currently studying bit o...原创 2019-08-16 13:24:44 · 188 阅读 · 0 评论