摘要:
题意:给出n个区间(a, b) (n#include#defineN5005structSeg{ints,e;}seg[N];intcmp(constvoid*a,constvoid*b){structSeg*x=(structSeg*)a;structSeg*y=(structSeg*)b;if(x->s==y->s)returnx->e-y->e;returnx->s-y->s;}intmain(){FILE*fin=fopen("milk2.in","r");FILE*fout=fopen("milk2 阅读全文