
数据结构_树套树
SCUT_Pein
这个作者很懒,什么都没留下…
展开
-
UVA11990--"Dynamic"Inversion
You are given a permutation {1,2,3,...,n}. Remove m of them one by one, and output the number of inversion pairs before each removal. The number of inversion pairs of an array A is the number of order原创 2014-08-24 19:05:06 · 986 阅读 · 0 评论 -
3110: [Zjoi2013]K大数查询
Description 有N个位置,M个操作。操作有两种,每次操作如果是1 a b c的形式表示在第a个位置到第b个位置,每个位置加入一个数c 如果是2 a b c形式,表示询问从第a个位置到第b个位置,第C大的数是多少。 Input 第一行N,M 接下来M行,每行形如1 a b c或2 a b c Output 输出每个询问的结果 Sample Input原创 2015-09-23 20:24:49 · 699 阅读 · 1 评论