为什么这个达不到题目要求呢
只有两组数据过了 附:c++11的代码
#include <iostream>
using namespace std;
int main()
{
long long int a[10000][4], b, d = 0;
cin >> b;
for(long int i = 0; i < b; i++ )
{
cin >> a[i][0] >> a[i][1] >> a[i][2] >> a[i][3];
}
long int c[2];
cin >> c[0] >> c[1];
for (long int i = 0; i < b; i++)
{
if (a[i][0] <= c[0] && a[i][1] <= c[1] && a[i][0] + a[i][2] >= c[0] && a[i][1] + a[i][3] >= c[1]) d = d + 1;
}
if (d == 0) cout << -1;
else cout << d;
return 0;
}
求大佬们帮助啊qwq