贪心
#include<iostream>
#include<cstdio>
#include<cstring>
#include<stack>
#include<algorithm>
using namespace std;
stack<int>st[1444];
struct node
{
int x,y;
}a[111111],b[111111];
int n,m;
bool cmp(node e,node f)
{
if(e.y==f.y)return e.x<f.x;
else return e.y<f.y;
}
int main()
{
while(scanf("%d%d",&n,&m)!=EOF)
{
for(int i=0;i<n;i++)scanf("%d%d",&a[i].x,&a[i].y);
for(int i=0;i<m;i++)scanf("......
阅读全文