比较裸的树套树,对于区间K值bz上有一道裸题,详见题解http://www.cnblogs.com/BLADEVIL/p/3455336.html(其实题解也不是很详细) //By BLADEVIL type rec =record left, right, root :longint; end; var n, m :longint; a :..] of longint; t :..] of rec; b_left, b_right, b_key :..] of longint; b_size…