Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <string.h>#include <stdio.h>#include <string>#include <algorithm>#define inf (1<<29)#define maxn 100100using namespace std;long long n, m;struct Num{long long y;long long x;const bool operator <(const Num &a) const{return x < a.x;}}a[maxn], b[maxn];void input(){int i, j;scanf("%lld %lld", &n, &m);for (i = 1; i <= n; ++i){scanf("%lld%lld", &a[i].x, &a[i].y);}for (i = 1; i <= m; ++i){scanf("%lld%lld", &b[i].x, &b[i].y);}}