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 "king.h"
#include <bits/stdc++.h>
using namespace std;
long long SendInfo(vector<int> W, vector<int> C){
return 0;
}
#include "vassal.h"
#include <bits/stdc++.h>
using namespace std;
set<pair<int, int>> C;
void Init(long long B, vector<int> C){
for (size_t i = 0; i < C.size(); ++i)
::C.emplace(C[i], i);
}
int Maid(int W){
auto p = C.lower_bound(make_pair(W, 0));
if (p == C.end())
return -1;
int res = p->second;
C.erase(p);
return res;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |