#include<bits/stdc++.h>
using namespace std;
const int N=8010;
int n,q;
struct node{
int id;
int num;
};
node a[N];
int b[N];
bool cmp(node a, node b){
if(a.num==b.num){
return a.id<b.id;
}
return a.num<b.num;
}
void change(int pos) {
while(pos>1){
if(a[pos].num==a[pos-1].num && a[pos].id>a[pos-1].id){
break;
}
if(a[pos].num>a[pos-1].num){
break;
}
swap(a[pos],a[pos-1]);
b[a[pos].id]=pos;
pos--;
&nb
08-19
1709
1709
03-27
5960
5960
03-10
556
556

最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



