Submission #1121961

#TimeUsernameProblemLanguageResultExecution timeMemory
1121961MoonnUnscrambling a Messy Bug (IOI16_messy)C++17
0 / 100
1 ms504 KiB
#include "messy.h" #include <bits/stdc++.h> #define ll long long #define endl "\n"; #define AI ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); using namespace std; vector<int>restore_permutation(int n,int w,int r) { vector<string>q; string a="1"; q.push_back(a); for(int i=1;i<n;i++) a+="0"; for(int i=0;i<n;i++) { a[i]='1'; q.push_back(a); } for(int i=0;i<n;i++) add_element(q[i]); compile_set(); vector<int>pp(n); a=q[0]; for(int i=0;i<n;i++) { a[i]='0'; for(int j=0;j<n;j++) { a[j]='1'; if(check_element(a)) { pp[i]=j; break; } } } return pp; }
#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...