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>ans;
vector<int> construct_permutation(long long k){
ans.clear();
long long x=log2(k);
if((1<<x)!=k)x++;
for(int i=0;i<x;i++)ans.push_back(i);
return ans;
}
//
// int main(){
// int k;
// cin >> k;
// vector<int>ans;
// ans=construct_permutation(k);
// for(int i=0;i<ans.size();i++){
// cout<<ans[i]<<' ';
// }
// }
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |