Submission #969524

# Submission time Handle Problem Language Result Execution time Memory
969524 2024-04-25T09:33:41 Z dubabuba Permutation (APIO22_perm) C++17
10 / 100
1 ms 600 KB
#include <bits/stdc++.h>
#include "perm.h"

using namespace std;

typedef long long i64;
typedef vector<int> vi;

vi construct_permutation(i64 k) {
	if(k > 5050) exit(1);
	vi a;
	for(int i = k - 1; i > 0; i--)
		a.push_back(i - 1);
	return a;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Runtime error 0 ms 600 KB Execution failed because the return code was nonzero
4 Halted 0 ms 0 KB -