摘要:
题目描述 Since you are the best Wraith King, Nizhniy Magazin «Mir» at the centre of Vinnytsia is offering you a discount. You are given an array a a a of 阅读全文
摘要:
题目描述 如题,一开始有 n 个小根堆,每个堆包含且仅包含一个数。接下来需要支持两种操作: 1 x y:将第 x 个数和第 y 个数所在的小根堆合并(若第 x 或第 y 个数已经被删除或第 x 和第 y 个数在用一个堆内,则无视此操作)。 2 x:输出第 x 个数所在的堆最小数,并将这个最小数删除( 阅读全文
摘要:
总结 A. 不知道叫什么名字 题目描述 分析 一道裸的LCA板子题,就是卡常有点难受,注释在代码里 代码 #include<bits/stdc++.h> using namespace std; const int maxn=22,maxk=1000005; int f[maxk][maxn]; i 阅读全文