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>
#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... |