제출 #230375

#제출 시각아이디문제언어결과실행 시간메모리
230375nickmet2004Exhibition (JOI19_ho_t2)C++11
0 / 100
5 ms384 KiB
#include<bits/stdc++.h>
#define f first
#define s second

using namespace std;

int n , m;
pair<int , int> p[100005];
int fr[100005];

int main (){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cin >> n >> m;
    for(int i = 0; i < n; ++i) cin >> p[i].s >> p[i].f;
    for(int i = 0; i < m; ++i) cin >> fr[i];
    int ans = 0;
    for(int i = n - 1; i >= 0; --i){
        if(fr[m - ans] >= p[i].s) ans++;
        if(ans == m) break;
    }cout << ans << endl;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...