Submission #572474

# Submission time Handle Problem Language Result Execution time Memory
572474 2022-06-04T13:07:47 Z model_code Permutation (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;
}

# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
# Verdict Execution time Memory 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 -