#include "library.h"
#include<bits/stdc++.h>
#define pb push_back
using namespace std;
void Solve(int n) {
vector <int> m(n);
m[0] = 1;
int mx = 0, p = 0;
for(int i = 1; i < n; i ++) {
m[i] = 1;
int x;
x = Query(m);
if (x > mx) {
mx = x;
p = i;
}
m[i] = 0;
}
vector < pair < int, int > > res;
m[0] = 0;
//m[p] = 1;
for (int i = 0; i < n; i ++) {
m[p] = 1;
m[i] = 1;
res.pb({Query(m), i});
m[p] = 0;
m[i] = 0;
}
sort(res.begin(), res.end());
vector < int > ans;
for (int i = 0; i < n; i ++)
ans.pb(res[i].second);
Answer(ans);
}
// B...a
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
9 ms |
248 KB |
Wrong Answer [5] |
2 |
Incorrect |
9 ms |
248 KB |
Wrong Answer [5] |
3 |
Incorrect |
8 ms |
248 KB |
Wrong Answer [5] |
4 |
Incorrect |
9 ms |
248 KB |
Wrong Answer [5] |
5 |
Incorrect |
9 ms |
248 KB |
Wrong Answer [5] |
6 |
Incorrect |
10 ms |
376 KB |
Wrong Answer [5] |
7 |
Incorrect |
8 ms |
248 KB |
Wrong Answer [5] |
8 |
Incorrect |
10 ms |
324 KB |
Wrong Answer [5] |
9 |
Incorrect |
10 ms |
376 KB |
Wrong Answer [5] |
10 |
Incorrect |
6 ms |
376 KB |
Wrong Answer [5] |
11 |
Incorrect |
2 ms |
376 KB |
Wrong Answer [5] |
12 |
Incorrect |
2 ms |
248 KB |
Wrong Answer [5] |
13 |
Incorrect |
2 ms |
376 KB |
Wrong Answer [5] |
14 |
Incorrect |
2 ms |
248 KB |
Wrong Answer [5] |
15 |
Incorrect |
2 ms |
380 KB |
Wrong Answer [5] |
16 |
Incorrect |
2 ms |
376 KB |
Wrong Answer [5] |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
9 ms |
248 KB |
Wrong Answer [5] |
2 |
Incorrect |
9 ms |
248 KB |
Wrong Answer [5] |
3 |
Incorrect |
8 ms |
248 KB |
Wrong Answer [5] |
4 |
Incorrect |
9 ms |
248 KB |
Wrong Answer [5] |
5 |
Incorrect |
9 ms |
248 KB |
Wrong Answer [5] |
6 |
Incorrect |
10 ms |
376 KB |
Wrong Answer [5] |
7 |
Incorrect |
8 ms |
248 KB |
Wrong Answer [5] |
8 |
Incorrect |
10 ms |
324 KB |
Wrong Answer [5] |
9 |
Incorrect |
10 ms |
376 KB |
Wrong Answer [5] |
10 |
Incorrect |
6 ms |
376 KB |
Wrong Answer [5] |
11 |
Incorrect |
2 ms |
376 KB |
Wrong Answer [5] |
12 |
Incorrect |
2 ms |
248 KB |
Wrong Answer [5] |
13 |
Incorrect |
2 ms |
376 KB |
Wrong Answer [5] |
14 |
Incorrect |
2 ms |
248 KB |
Wrong Answer [5] |
15 |
Incorrect |
2 ms |
380 KB |
Wrong Answer [5] |
16 |
Incorrect |
2 ms |
376 KB |
Wrong Answer [5] |
17 |
Incorrect |
46 ms |
320 KB |
Wrong Answer [5] |
18 |
Incorrect |
55 ms |
324 KB |
Wrong Answer [5] |
19 |
Incorrect |
53 ms |
376 KB |
Wrong Answer [5] |
20 |
Incorrect |
37 ms |
316 KB |
Wrong Answer [5] |
21 |
Incorrect |
34 ms |
328 KB |
Wrong Answer [5] |
22 |
Incorrect |
50 ms |
376 KB |
Wrong Answer [5] |
23 |
Incorrect |
54 ms |
316 KB |
Wrong Answer [5] |
24 |
Incorrect |
25 ms |
248 KB |
Wrong Answer [5] |
25 |
Incorrect |
49 ms |
376 KB |
Wrong Answer [5] |
26 |
Incorrect |
49 ms |
376 KB |
Wrong Answer [5] |
27 |
Incorrect |
19 ms |
376 KB |
Wrong Answer [5] |
28 |
Incorrect |
56 ms |
400 KB |
Wrong Answer [5] |
29 |
Incorrect |
52 ms |
252 KB |
Wrong Answer [5] |
30 |
Incorrect |
45 ms |
404 KB |
Wrong Answer [5] |