# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
984746 | Uultan12 | 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.
#include <random>
std::vector<int> construct_permutation(long long k) {
std::vector<int> permutation(k);
for (int i = 0; i < k; ++i) {
permutation[i] = i;
}
std::is_permutation(permutation.begin(), permutation.end());
return permutation;
}