제출 #207001

#제출 시각아이디문제언어결과실행 시간메모리
207001autumn_eelUnscrambling a Messy Bug (IOI16_messy)C++14
20 / 100
5 ms504 KiB
#include "messy.h" #include <bits/stdc++.h> #define rep(i,n)for(int i=0;i<(n);i++) using namespace std; typedef pair<int,int>P; vector<int> restore_permutation(int n, int w, int r) { if(n==8){ rep(i,n){ string s; rep(j,n){ if(j<=i)s+='0'; else s+='1'; } add_element(s); } compile_set(); vector<int>v(n),p(n);//p[v[i]]=i rep(i,n){ string s(n,'1'); rep(j,i)s[v[j]]='0'; rep(j,n){ if(s[j]=='0')continue; s[j]='0'; if(check_element(s)){ v[i]=j;break; } s[j]='1'; } } rep(i,n){ p[v[i]]=i; } return p; } if(n==32){ } return {}; }
#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...