前50分显然是非常水的。甚至能用搜索过。
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define fi first
#define se second
#define ll long long
#define pq priority_queue
#define mp make_pair
#define pii pair<int,int>
#define mod 998244353
#define debug(x) cerr<<#x<<"="<<x<<'\n'
int lowbit(int x) {return x&(-x);}
struct a {
int i,j,f,cnt;
};
a build(int aa,int b,int c,int d) {
a tmp;
tmp.i=aa,tmp.j=b,tmp.f=c,tmp.cnt=d;
return tmp;
}
const int maxn=22,maxm=19;
deque <a> q;
int n,m,k;
int l[maxn],r[maxn];
int x[maxn],y[maxn];
bool pipe[maxn];
int main(){
scanf("%d%d%d",&n,&m,&k);
for (int i=0;i<n;i++) {
scanf("%d%d",&x[i],&y[i]);
l[i]=0,r[i]=m+1;
}
for (int i=0;i<k;i++) {
int p;scanf("%d",&p)