This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
#include "messy.h"
using namespace std;
int a,b,c,d,e,i,j,ii,jj,zx,xc,p[100009],pas[100009];
vector <int> vpas;
bool bl;
string s;
void cler(string &q){
q.clear();
for(int h=0; h<a; h++) q.push_back('0');
}
vector<int> restore_permutation(int a, int wwa, int rra) {
cler(s);
for(i=0; i<a; i++){
s[i]='1';
add_element(s);
}
compile_set();
cler(s);
for(i=0; i<a; i++){
for(j=0; j<a; j++){
if(s[j]=='1') continue;
bl=check_element(s);
if(bl==1){
s[j]='0';
p[i]=j;
break;
}
s[j]='0';
}
}
for(i=0; i<a; i++){
pas[p[i]]=i;
}
for(i=0; i<a; i++){
vpas.push_back(pas[i]);
}
return vpas;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |