제출 #286534

#제출 시각아이디문제언어결과실행 시간메모리
286534mosiashvililukaUnscrambling a Messy Bug (IOI16_messy)C++14
38 / 100
1 ms408 KiB
#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 nnn, int wwa, int rra) { a=nnn; 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; s[j]='1'; bl=check_element(s); if(bl==1){ 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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...