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 <algorithm>
using namespace std;
typedef long long lint;
long long SendInfo(std::vector<int> W, std::vector<int> C) {
return 0;
}
#include "vassal.h"
#include <algorithm>
#include <utility>
#include <set>
using namespace std;
typedef pair<int, int> pii;
set<pii> A;
int n;
void Init(long long B, std::vector<int> C){
n = C.size();
for(int i=0; i<n; i++) A.insert({C[i], i});
}
int Maid(int W){
auto it = A.lower_bound({W,0});
if(it==A.end()) return -1;
int ret = it->second;
A.erase(it);
return ret;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |