摘要:
多路归并+优先队列的使用#include <iostream>
#include <cstdio>
#include <queue>
#include <algorithm>
using namespace std;
const int maxn=2000+10;
int a[110][maxn],b[maxn],n,m;
struct item
{ int s,b; item(int s,int b):s(s),b(b) { }
};
bool operator < (item a,item b)
{ return a.s>b.s; 阅读全文