# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
149853 | GucciBelt (#200) | King of Chairs (FXCUP4_chairs) | C++17 | 160 ms | 10444 KiB |
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>
#define long long long
using namespace std;
long SendInfo(vector<int> W, vector<int> C) {
return 0;
}
#include "vassal.h"
#include <bits/stdc++.h>
#define long long long
#define pii pair<int, int>
#define x first
#define y second
using namespace std;
set<pii> S;
void Init(long B, vector<int> C){
for(int i = 0; i < C.size(); i++) S.emplace(C[i], i);
}
int Maid(int W){
auto it = S.lower_bound(pii(W, -1));
if(it == S.end()) return -1;
else {
int ret = it->y;
S.erase(it);
return ret;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |