#include "messy.h"
#include "bits/stdc++.h"
using namespace std;
#define pb push_back
const int MAX=1e5;
vector<int> restore_permutation(int n, int w, int r)
{
/*add_element("0");
compile_set();
check_element("0");*/
string X="";
vector<int> res;
for(int A=0;A<8;A++)
res.pb(A);
for(int A=0;A<8;A++)
X+="0";
for(int A=0;A<8;A++)
{
X[A]='1';
add_element(X);
}
compile_set();
for(int A=0;A<8;A++)
X[A]='0';
for(int A=0;A<8;A++)
{
for(int B=A+1;B<8;B++)
{
X[B]='1';
if(check_element(X))
swap(res[A],res[B]);
X[B]='0';
}
X[A]='1';
}
return res;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
384 KB |
n = 8 |
2 |
Correct |
2 ms |
384 KB |
n = 8 |
3 |
Correct |
2 ms |
384 KB |
n = 8 |
4 |
Correct |
2 ms |
256 KB |
n = 8 |
5 |
Correct |
2 ms |
384 KB |
n = 8 |
6 |
Correct |
2 ms |
384 KB |
n = 8 |
7 |
Correct |
2 ms |
256 KB |
n = 8 |
8 |
Correct |
2 ms |
384 KB |
n = 8 |
9 |
Correct |
2 ms |
384 KB |
n = 8 |
10 |
Correct |
2 ms |
256 KB |
n = 8 |
11 |
Correct |
2 ms |
256 KB |
n = 8 |
12 |
Correct |
2 ms |
256 KB |
n = 8 |
13 |
Correct |
2 ms |
256 KB |
n = 8 |
14 |
Correct |
2 ms |
256 KB |
n = 8 |
15 |
Correct |
2 ms |
256 KB |
n = 8 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
384 KB |
grader returned WA |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
384 KB |
grader returned WA |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
384 KB |
grader returned WA |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
256 KB |
grader returned WA |
2 |
Halted |
0 ms |
0 KB |
- |