# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
382211 | rainboy | 새 집 (APIO18_new_home) | C11 | 2768 ms | 89692 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/* https://oj.uz/submission/66480 (Benq) */
#include <stdio.h>
#include <string.h>
#define N 300000
#define K N
#define Q 300000
#define M (N * 2 + Q)
#define Q_ (N * 3 + K)
#define N_ (1 << 19) /* N_ = pow2(ceil(log2(Q))) */
#define INF 0x3f3f3f3f
#define X 100000000
int min(int a, int b) { return a < b ? a : b; }
int max(int a, int b) { return a > b ? a : b; }
unsigned int Z = 12345;
int rand_() {
return (Z *= 3) >> 1;
}
int xx[N + K], gg[N], yy[Q], tt[N * 2 + Q], n, k, q;
int compare_t(int h1, int h2) {
int type1, type2;
if (tt[h1] != tt[h2])
return tt[h1] - tt[h2];
type1 = h1 < n * 2 ? ((h1 & 1) == 0 ? 1 : -1) : 0;
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |