# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
871441 | rainboy | Secret Permutation (RMI19_permutation) | C++17 | 1932 ms | 238724 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "permutation.h"
#include <iostream>
#include <cstring>
#include <vector>
using namespace std;
typedef vector<int> vi;
const int N = 256, M = 250000;
const long long INF = 0x3f3f3f3f3f3f3f3fLL;
int abs_(int a) { return a > 0 ? a : -a; }
int min(int a, int b) { return a < b ? a : b; }
unsigned int X = 998244353;
int rand_() {
return (X *= 3) >> 1;
}
char used[N]; int kk[N];
int check(short *aa, int n, int m) {
int a = 0;
for (int i = 0; i < m; i++)
a = min(a, aa[i]);
memset(used, 0, n * sizeof *used);
for (int i = 0; i < m; i++) {
if (aa[i] - a >= n || used[aa[i] - a])
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |