| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 149434 | JeffreyHo (#200) | King of Chairs (FXCUP4_chairs) | C++17 | 176 ms | 10456 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"
long long SendInfo(std::vector<int> W, std::vector<int> C) {
int n = (int)W.size();
return 0;
}
#include "vassal.h"
#include <bits/stdc++.h>
using namespace std;
std::multiset<pair<int, int>> a;
long long BB;
void Init(long long B, std::vector<int> c){
int n = (int)c.size();
for (int i = 0; i < n; i++) a.insert({c[i], i});
a.insert({1000000007, -1});
BB = B;
}
int Maid(int x) {
pair<int, int> y = *a.lower_bound({x, 0});
if (y.first == 1000000007) return -1;
a.erase(a.find(y));
return y.second;
}
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... | ||||
