답안 #787331

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
787331 2023-07-19T05:40:20 Z kebine Exhibition (JOI19_ho_t2) C++17
0 / 100
1 ms 320 KB
#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main() {
  ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  int n, m; cin >> n >> m;
  vector<pair<int, int>> a(n);
  vector<int> b(m);
  for(auto &p : a) cin >> p.second >> p.first;
  for(int &p : b) cin >> p;
  sort(a.begin(), a.end());
  sort(b.begin(), b.end());
  int idx=0;
  for(auto p : a) {
     if(idx<m && p.second>b[idx]) continue;
     idx++;
  }  
  cout << idx << '\n';
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 320 KB Output is correct
4 Incorrect 1 ms 212 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 320 KB Output is correct
4 Incorrect 1 ms 212 KB Output isn't correct
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 320 KB Output is correct
4 Incorrect 1 ms 212 KB Output isn't correct
5 Halted 0 ms 0 KB -