几个点超时了,看题解才学会归并(归并排序的思想就是合并两个同序数组的线性方式——每次比较两个有序数组指针指向的值,谁更小(大)则放到temp数组里)
#include <cstdio>
#include <algorithm>
using namespace std;
int n,r,q;
struct student
{
long long int s;
long long int w;
int bianhao;
}stu[200002]={
0};
student a[200010],win[200010],lose[200010];
bool compar(student a,student b)
{
if(a.s==b.s) return a.bianhao<b.bianhao;
return a.s>b.s;
}
void merge()
{