| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 209256 | Autoratch | Exhibition (JOI19_ho_t2) | C++14 | 5 ms | 376 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
const int N = 1e5;
int n,m;
pair<long long,long long> a[N];
long long b[N],ans;
int main()
{
ios_base::sync_with_stdio(0); cin.tie(0);
cin >> n >> m;
for(int i = 0;i < n;i++) cin >> a[i].second >> a[i].first;
for(int i = 0;i < m;i++) cin >> b[i];
sort(a,a+n),sort(b,b+m);
int i = 0,j = 0;
while(j<m)
{
if(b[j]>=a[i].second) ans++,i++,j++;
else j++;
}
cout << ans;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
