Submission #969545

# Submission time Handle Problem Language Result Execution time Memory
969545 2024-04-25T09:49:55 Z akacool445k Permutation (APIO22_perm) C++17
10 / 100
487 ms 49244 KB
#include <bits/stdc++.h>
#include "perm.h"
using namespace std;
 
// #define int long long
#define ll long long
#define ff first
#define ss second
#define fast ios_base::sync_with_stdio(NULL); cin.tie(NULL)

const double inf = 1e18 + 9;
const int mxn = 2e5 + 2;
const int mod = 1e9 + 7;
 
vector<int> construct_permutation(long long k) {
	vector<int> v(k - 1);
	for(int i = 0; i < k - 1; i++) {
		v[i] = k - 2 - i;
	}
	return v;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Incorrect 487 ms 49244 KB Integer 39992 violates the range [1, 5000]
4 Halted 0 ms 0 KB -