#include "king.h"
long long SendInfo(std::vector<int> W, std::vector<int> C) {
return 0;
}
#include "vassal.h"
#include<bits/stdc++.h>
using namespace std;
set<pair<int,int>> s;
void Init(long long B, std::vector<int> C){
int N = C.size();
for(int i=0;i<N;i++) s.insert({C[i], i});
}
int Maid(int W){
auto tmp = s.lower_bound({W,0});
if(tmp==s.end()) return -1;
else {
int res = tmp->second;
s.erase(tmp);
return res;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
10 ms |
1056 KB |
Correct |
2 |
Correct |
10 ms |
1060 KB |
Correct |
3 |
Correct |
10 ms |
1056 KB |
Correct |
4 |
Correct |
10 ms |
1060 KB |
Correct |
5 |
Correct |
10 ms |
1060 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
64 ms |
5944 KB |
Correct |
2 |
Correct |
108 ms |
9640 KB |
Correct |
3 |
Correct |
115 ms |
10456 KB |
Correct |
4 |
Correct |
121 ms |
10460 KB |
Correct |
5 |
Correct |
117 ms |
10444 KB |
Correct |
6 |
Correct |
119 ms |
10448 KB |
Correct |
7 |
Correct |
117 ms |
10444 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
77 ms |
5436 KB |
Correct |
2 |
Correct |
145 ms |
9640 KB |
Correct |
3 |
Correct |
134 ms |
9936 KB |
Correct |
4 |
Correct |
158 ms |
10456 KB |
Correct |
5 |
Correct |
153 ms |
10448 KB |
Correct |
6 |
Correct |
153 ms |
10196 KB |
Correct |
7 |
Correct |
134 ms |
10444 KB |
Correct |
8 |
Correct |
130 ms |
10460 KB |
Correct |