#include <bits/stdc++.h>
using namespace std;
#define int int64_t
#define pii array<int,2>
signed main() {
int n,m;cin>>n>>m;
vector<array<pii, 2>> v(n);
for (auto &x:v) {
cin>>x[0][0]>>x[0][1]>>x[1][0]>>x[1][1];
}
vector<pii> pts(m);
for (auto &x:pts) {
cin>>x[0]>>x[1];
int tmp;cin>>tmp;
}
for (auto &x:v) {
int cnt=0;
for (auto &y : pts) {
if (x[0][0] > y[0] || y[0] > x[1][0]) continue;
if (x[0][1] > y[1] || y[1] > x[1][1]) continue;
cnt++;
}
cout<<cnt<<"\n";
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1883 ms |
1656 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1904 ms |
2140 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2021 ms |
3556 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2020 ms |
4696 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2013 ms |
4196 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |