# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
45245 | gs14004 | Golf (JOI17_golf) | C++17 | 2432 ms | 751984 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long lint;
typedef long double llf;
typedef pair<int, int> pi;
const int MAXN = 200005;
const int pool = 20000000;
vector<int> gph[pool];
struct node{ int l, r; }tree[pool];
int dis[pool], piv;
bool vis[pool];
void init(int s, int e, int p){
if(s == e) return;
tree[p].l = piv++;
tree[p].r = piv++;
int m = (s+e)/2;
init(s, m, tree[p].l);
init(m+1, e, tree[p].r);
}
void update(int pos, int s, int e, int prv, int cur, int v){
if(s == e){
if(v != -1) gph[cur].push_back(v);
return;
}
int m = (s+e)/2;
if(pos <= m){
tree[cur].l = piv++;
컴파일 시 표준 에러 (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... |