#include "perm.h"
#include <vector>
std::vector<int> construct_permutation(long long k) {
std::vector<int> out(k - 1);
for (long long i = 0; i < k - 1; ++i) {
out[i * -1 + k - 2] = i; }
return out; }
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Incorrect |
452 ms |
49300 KB |
Integer 39992 violates the range [1, 5000] |
4 |
Halted |
0 ms |
0 KB |
- |