# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
217328 | kshitij_sodani | Exhibition (JOI19_ho_t2) | C++17 | 93 ms | 5756 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
typedef long long int llo;
#define mp make_pair
#define pb push_back
#define a first
#define b second
#define endl "\n"
llo mod=1000000007;
llo n,m;
pair<llo,llo> it[100002];
llo aa[100001];
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
cin>>n>>m;
for(llo i=0;i<n;i++){
cin>>it[i].b>>it[i].a;
}
for(llo i=0;i<m;i++){
cin>>aa[i];
}
sort(it,it+n);
sort(aa,aa+m);
llo ind=m-1;
llo tot=0;
for(llo i=n-1;i>=0;i--){
if(it[i].b<=aa[ind]){
tot+=1;
ind-=1;
}
}
llo low=0;
llo high=m;
cout<<tot<<endl;
return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |