Submission #838478

#TimeUsernameProblemLanguageResultExecution timeMemory
838478finn__Permutation (APIO22_perm)C++17
91.33 / 100
2 ms340 KiB
#include <bits/stdc++.h> #include "perm.h" using namespace std; vector<int> construct_permutation(long long k) { if (k == 1) return {}; vector<int> p = construct_permutation(k >> 1); p.push_back(p.size()); if (k & 1) p.insert(p.begin(), p.size()); return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...