Submission #1225036

#TimeUsernameProblemLanguageResultExecution timeMemory
1225036PanosPaskPermutation (APIO22_perm)C++20
10 / 100
1 ms324 KiB
#include "perm.h"

using namespace std;

typedef long long ll;

vector<int> construct_permutation(ll k)
{
	if (k > 100) {
		return {};
	}

	int len = k - 1;
	vector<int> p(len);
	for (int i = 0; i < len; i++) {
		p[i] = len - i - 1;
	}

	return p;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...