# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
916390 | Jakub_Wozniak | Permutation (APIO22_perm) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
vector<int> construct_permutation(long long n)
{
long long akt = 200;
bool b = 0;
vector <int> v;
while (n)
{
if (n == 1)
break;
if (n % 2)
{
v.push_back(0);
}
v.push_back(akt);
n /= 2;
akt--;
}
return v;
}