题目描述

解题代码
注意事项:这道题的时间卡的太死,输入输出最好使用scanf与printf,或者使用加速代码的cin与cout,否则会超时。
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
struct part{
ll num;
int id;
part(ll x,int y){
num=x;
id=y;
}
};
struct cmp{
bool operator()(part a,part b){
if(a.num==b.num) return a.id>b