제출 #65240

#제출 시각아이디문제언어결과실행 시간메모리
65240FedericoSUnscrambling a Messy Bug (IOI16_messy)C++14
20 / 100
2 ms384 KiB
#include <vector> #include <iostream> #include "messy.h" using namespace std; vector<int> restore_permutation(int N, int w, int r) { vector<int> P(N,-1); string S(N,'0'); for(int i=0;i<N;i++){ S[i]='1'; add_element(S); } compile_set(); string R(N,'0'); for(int i=0;i<N;i++) for(int j=0;j<N;j++) if(R[j]=='0'){ R[j]='1'; if(check_element(R)){ P[i]=j; break; } else R[j]='0'; } return P; }
#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...