제출 #838478

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