#include "perm.h"
#include<bits/stdc++.h>
#define pb push_back
#define F first
#define S second
using namespace std;
const int N = 1e6 + 5, MOD = 1e9 + 7;
std::vector<int> construct_permutation(long long k)
{
vector<int> ans;
for(int i = k - 2; i >= 0; --i)
ans.pb(i);
return ans;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
3 |
Incorrect |
591 ms |
51236 KB |
Integer 39992 violates the range [1, 5000] |
4 |
Halted |
0 ms |
0 KB |
- |