Submission #926284

# Submission time Handle Problem Language Result Execution time Memory
926284 2024-02-12T18:17:33 Z VMaksimoski008 Exhibition (JOI19_ho_t2) C++14
0 / 100
0 ms 348 KB
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n, m;
    cin >> n >> m;

    vector<pair<int, int> > v(n);
    vector<int> c(m);
    for(auto x : v) cin >> x.second >> x.first;
    for(int x : c) cin >> x;

    sort(v.rbegin(), v.rend());
    sort(c.rbegin(), c.rend());

    int j = 0;
    for(int i=0; i<n; i++)
        if(v[i].second <= c[j]) j++;
    cout << j << '\n';
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -