#include "grader.h"
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
void solve(int N) {
vector<int> ans(N);
for (int i = 0; i < N; i++) {
int l = 0, r = N - 1;
while (l != r) {
int mid = (l + r) / 2;
vector<int> tst(N, 0);
for (int j = l; j <= mid; j++) tst[j] = i + 1;
if (query(tst)) r = mid;
else l = mid + 1;
}
ans[l] = i + 1;
}
query(ans);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
200 KB |
Execution killed with signal 13 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
200 KB |
Execution killed with signal 13 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
1 ms |
200 KB |
Execution killed with signal 13 |
2 |
Halted |
0 ms |
0 KB |
- |