Submission #980682

# Submission time Handle Problem Language Result Execution time Memory
980682 2024-05-12T10:14:46 Z Malix Permutation (APIO22_perm) C++17
10 / 100
485 ms 51364 KB
#include "perm.h"
#include <bits/stdc++.h>
using namespace std;

typedef unsigned long long ll;
typedef vector<int> vi;
typedef vector<vi> vii;
typedef pair<int,int> pi;
typedef vector<pi> pii;

#define REP(i,a,b) for(int i=a;i<b;i++)
#define F first
#define S second
#define PB push_back
#define MP make_pair

ll INF=1e18+10;

std::vector<int> construct_permutation(long long k)
{
	vi ans;
	REP(i,0,k-1)ans.PB(i);
	reverse(ans.begin(),ans.end());
	return ans;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Incorrect 485 ms 51364 KB Integer 39992 violates the range [1, 5000]
4 Halted 0 ms 0 KB -