Submission #796676

#TimeUsernameProblemLanguageResultExecution timeMemory
796676MalixUnscrambling a Messy Bug (IOI16_messy)C++14
0 / 100
1 ms304 KiB
#include <vector> #include <bits/stdc++.h> using namespace std; #include "messy.h" std::vector<int> restore_permutation(int n, int w, int r) { string a(n, '0'); for(int i=0;i<n-1;i++){a[i]='1';add_element(a);} compile_set(); vector<int> ans(n, n-1); bool is_true=0; string b(n, '0');int c=0; for(int i=0;i<n-1;i++){ is_true=0;c=0; while(!is_true){ if(b[c]!='1'){ b[c]='1'; is_true=check_element(b); if(!is_true)b[c]='0'; } c++; } ans[c]=i; } return ans; }
#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...