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)
king.cpp: In function 'long long int SendInfo(std::vector<int>, std::vector<int>)':
king.cpp:4:6: warning: unused variable 'n' [-Wunused-variable]
int n = (int)W.size();
^
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |