제출 #943279

#제출 시각아이디문제언어결과실행 시간메모리
943279PenguinsAreCute순열 (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...