Submission #820875

#TimeUsernameProblemLanguageResultExecution timeMemory
820875HanksburgerPermutation (APIO22_perm)C++17
10 / 100
523 ms49432 KiB
#include "perm.h" #include <bits/stdc++.h> using namespace std; vector<int> ans; vector<int> construct_permutation(long long k) { ans.clear(); if (k<=90) { for (long long i=k-2; i>=0; i--) ans.push_back(i); return ans; } }

Compilation message (stderr)

perm.cpp: In function 'std::vector<int> construct_permutation(long long int)':
perm.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
   14 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...