답안 #975951

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
975951 2024-05-06T03:51:48 Z Orifkhon 순열 (APIO22_perm) C++17
10 / 100
484 ms 49188 KB
// Source: https://usaco.guide/general/io

#include <bits/stdc++.h>
#include <perm.h>
using namespace std;

vector<int> construct_permutation(long long k) {
  vector<int> arr(k - 1);
  int ind = 0;
  for(int i = k - 2; i >= 0; i--){
    arr[ind] = i;
    ind++;
  }
  return arr;
}
# 결과 실행 시간 메모리 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 484 ms 49188 KB Integer 39992 violates the range [1, 5000]
4 Halted 0 ms 0 KB -