# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
149022 | 코딩은 체육과목입니다 (#200) | King of Chairs (FXCUP4_chairs) | C++17 | 165 ms | 10452 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 = W.size();
return 0;
}
#include "vassal.h"
#include <set>
using namespace std;
long long BB;
multiset<pair<int,int>> CC;
void Init(long long B, std::vector<int> C){
int N = C.size();
BB = B;
// ToDo
for (int i=0;i<C.size();i++){
CC.emplace(C[i], i);
}
}
int Maid(int W){
auto it = CC.lower_bound(pair<int,int>(W, 0));
if (it == CC.end())return -1;
int ans = (*it).second;
CC.erase(it);
return ans;
}
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... |