Submission #148637

#TimeUsernameProblemLanguageResultExecution timeMemory
148637rkm0959 (#200)King of Chairs (FXCUP4_chairs)C++17
0 / 100
52 ms3884 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...