# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
873262 | salmon | Permutation (APIO22_perm) | C++17 | 2 ms | 508 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.
#include "perm.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> construct_permutation(long long k){
if(k <= 90){
vector<int> v;
for(int i = 0; i < k - 1; i++){
v.push_back(i);
}
reverse(v.begin(),v.end());
return v;
}
vector<int> v;
vector<int> temp;
vector<int> bits;
bool flag = false;
while(k != 0){
bits.push_back(k % 2);
k /= 2;
}
bits.pop_back();
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |