1 | #include<cstdio> |
1 | #include<cstdio> |
维护一个大根堆,维护一个小根堆,大根堆有k个数,堆首就是第k大的,不会写堆,这里用优先队列来实现12345678910111213141516171819202122232425262728293031323334353637383940414243#include<cstdio>#in …
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798 …