Submission #698536

#TimeUsernameProblemLanguageResultExecution timeMemory
698536MrM7mdPermutation (APIO22_perm)C++17
0 / 100
0 ms212 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...