이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "king.h"
using namespace std;
long long SendInfo(std::vector<int> W, std::vector<int> C) {
return 0;
}
#include <bits/stdc++.h>
#include "vassal.h"
using namespace std;
typedef pair<int, int> pi;
#define f first
#define s second
multiset<pi> c;
void Init(long long B, std::vector<int> C){
int i = 0;
for (auto it:C) {
c.insert(pi(it, i));
i++;
}
}
int Maid(int W){
auto it = c.lower_bound(pi(W, -1));
if (it==c.end()) {
return -1;
}
int ans = (*it).s;
c.erase(it);
return ans;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |