답안 #572474

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
572474 2022-06-04T13:07:47 Z model_code 순열 (APIO22_perm) C++17
10 / 100
1 ms 212 KB
#include <bits/stdc++.h>
#include "perm.h"
using namespace std;

vector<int> construct_permutation(long long k) {
  if(k>90) return {};
  vector<int> perm(k-1);
  iota(perm.begin(),perm.end(),0);
  reverse(perm.begin(),perm.end());
  return perm;
}

# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Incorrect 1 ms 212 KB Integer 0 violates the range [1, 5000]
4 Halted 0 ms 0 KB -