/*
ID:wconvey1
PROG:milk2
LANG:C++
*/
#include<iostream>
#include<algorithm>
#include<cstdio>
struct node{
int s,e;
};
node a[5010];
int cmp(const void *x,const void *y)
{
if(((struct node *)x)->s!=((struct node *)y)->s)
return ((struct node *)x)->s-((struct node *)y)->s;
else
return ((struct node *)x)->e-((struct node *)y)->e;
}
int main()
{
freopen("milk2.in","r",stdin);
freopen("milk2.out","w",stdout);
int n,i;
scanf("%d",......
阅读全文