Submission #883064

# Submission time Handle Problem Language Result Execution time Memory
883064 2023-12-04T13:14:27 Z vjudge1 Exhibition (JOI19_ho_t2) C++17
0 / 100
0 ms 500 KB
#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define endl "\n"
#define all(aa) aa.begin(), aa.end()

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

	vector<pair<int, int>> v(n);
	for(auto &[a, b]:v) cin>>b>>a;
	sort(all(v));

	vector<int> c(m);
	for(auto &e:c) cin>>e;
	sort(all(c), greater<int>());

	int j=0;
	for(int i=0; i<n; i++)
		if(v[i].second<=c[j]) j++;

	cout<<j<<endl;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 500 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 500 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 500 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -