//纪念品领取 #include<bits/stdc++.h> using namespace std; long n,b[100001],ok,c,m,x; struct node//结构体 { int id; int pos; }a[100001]; bool cmp1(node x,node y)//sort判断函数 { return x.pos<y.pos; } bool cmp2(node x,node y) { return x.id<y.id; } int main() { cin>>n>>m;输入 for(int i=1;i<...