Submission #1202457

#TimeUsernameProblemLanguageResultExecution timeMemory
1202457trashaccountPermutation (APIO22_perm)C++20
10 / 100
338 ms51168 KiB
#include "perm.h"
#include <bits/stdc++.h>
using namespace std;

#define ll long long

vector <int> construct_permutation(ll k){
	if (k <= 90){
		vector <int> res = {};
		for (int i = k-2; i >= 0; i--)
			res.push_back(i);
		return res;
	}
}

Compilation message (stderr)

perm.cpp: In function 'std::vector<int> construct_permutation(long long int)':
perm.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
   14 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...