暴力求解 #include <bits/stdc++.h> using namespace std; struct carpet{ int x,y,a,b; }c[10010]; int n;int o,p; int ans=-1; int main() { scanf("%d",&n); for (int i = 1; i <=n ; ++i) { scanf("%d %d %d %d",&c[i].x,&c[i].y,&c[i].a,&c[i].b); c[i].a+=c[i]....