Submission #982045

# Submission time Handle Problem Language Result Execution time Memory
982045 2024-05-13T18:18:10 Z asdasdqwer Plahte (COCI17_plahte) C++14
0 / 160
2000 ms 4696 KB
#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 -