# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
150185 | Ian and 2-bit memory (#200) | King of Chairs (FXCUP4_chairs) | C++17 | 163 ms | 10484 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>
using namespace std;
long long SendInfo(std::vector<int> W, std::vector<int> C) {
int N = W.size();
return 0;
}
#include "vassal.h"
#include <bits/stdc++.h>
using namespace std;
long long BB;
typedef pair<int, int> P;
#define ft first
#define sd second
set<P> s;
void Init(long long B, std::vector<int> C){
int N = C.size();
BB = B;
s.clear();
for (int i = 0; i < N; i++) {
s.insert(P(C[i], i));
}
}
int Maid(int W){
auto ite = s.lower_bound(P(W, -1));
if (ite == s.end()) return -1;
int res = ite->sd;
s.erase(ite);
return res;
}
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... |