이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define L long long
using namespace std;
L SendInfo(vector<int>W, vector<int>C){
return 0;
}
#include <bits/stdc++.h>
#define L long long
using namespace std;
multiset<pair<int,int> >st;
void Init(L V, vector<int>C){
for(auto i:C){
st.insert(make_pair(C[i],i));
}
}
int Maid(int w){
multiset<pair<int,int> >::iterator it=st.lower_bound(make_pair(w,0));
if(it!=st.end())
{
int ret=it->second;
st.erase(it);
return ret;
}
return -1;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |