#include "king.h"
long long SendInfo(std::vector<int> W, std::vector<int> C) {
return 0LL;
}
#include <bits/stdc++.h>
#include "vassal.h"
using namespace std;
set<pair<int, int>> chairs;
void Init(long long B, vector<int> C){
for (int &x : C) chairs.emplace(x, B++);
}
int Maid(int W){
auto it = chairs.lower_bound({W, 0});
if (it == chairs.end()) return -1;
int pos = it->second;
chairs.erase(it);
return pos;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
636 KB |
Correct |
2 |
Correct |
18 ms |
748 KB |
Correct |
3 |
Correct |
4 ms |
636 KB |
Correct |
4 |
Correct |
4 ms |
764 KB |
Correct |
5 |
Correct |
4 ms |
764 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
54 ms |
7020 KB |
Correct |
2 |
Correct |
98 ms |
11788 KB |
Correct |
3 |
Correct |
106 ms |
12808 KB |
Correct |
4 |
Correct |
112 ms |
13140 KB |
Correct |
5 |
Correct |
112 ms |
12900 KB |
Correct |
6 |
Correct |
111 ms |
12752 KB |
Correct |
7 |
Correct |
110 ms |
12888 KB |
Correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
72 ms |
7008 KB |
Correct |
2 |
Correct |
147 ms |
11968 KB |
Correct |
3 |
Correct |
130 ms |
13060 KB |
Correct |
4 |
Correct |
158 ms |
12928 KB |
Correct |
5 |
Correct |
154 ms |
12884 KB |
Correct |
6 |
Correct |
186 ms |
12960 KB |
Correct |
7 |
Correct |
132 ms |
12840 KB |
Correct |
8 |
Correct |
123 ms |
13004 KB |
Correct |