2020-08-09 算法訓練 區間k大數查詢

給定一個序列,每次詢問序列中第l個數到第r個數中第K大的數是哪個。 #include<iostream> #include<algorithm>//next_permutation using namespace std;  int mao(int *a,int l,int r,int k) {     int d;     for(int i=l-1;i<r-1;i++)     {      
相關文章
相關標籤/搜索