rt
#include <bits/stdc++.h>
using namespace std;
bool kkksc03=true;
int n,a[5000][5000],sum,ans,b,c,d,e,g,h,s;
int main() {
cin>>n;
for(int i=1;i<=n;i++){
cin>>b>>c>>g>>h;
for(int j=b;j<=b+g;j++){
for(int k=c;k<=c+h;k++){
a[j][k]++;
}
}
}
cin>>d>>e;
if(a[d][e]!=0)
cout<<a[d][e];
else
cout<<-1;
return 0;
}
有任何问题请指出,求助大佬