Submission #943279

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