This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |