In mathematics you don't understand things, you just get used to them.

标签 trees 下的文章

DescriptionLink.给出一个堆,然后让你填数进去,使得其满足小根堆的性质,并使编号靠前的点的数最大。Solution考虑贪心,把原数列降序排序,然后因为这个东西是整除分块的形式,所以...