摘要:
#include using namespace std; int p[100010]; int p1[1010]; int p2[1010]; bool flag[500010]; const int N=500000; int tot=0; int cnt,cnt2; int res; int m=0; int a0,a1,b0,b1; void init() { for(int i... 阅读全文
摘要:
#include//标记数组法,在结构体外面开一个数组来标记这个元素是否被取完,对结构体排序,遍历结构体时如果标记数组为0跳过就好 using namespace std; typedef long long ll; struct student{ int index; int c; int r; }stu[100010]; int num[100010]; int c... 阅读全文