# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
459656 | Antekb | Klasika (COCI20_klasika) | C++14 | 5060 ms | 14572 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define st first
#define nd second
using namespace std;
const int N = (1<<18), M=6e7;
int pre[N], post[N], xo[N];
vector<int> E[N];
int L[M], R[M];
int wsk;
int root[N+N];
void dfs(int v){
pre[v]=wsk++;
for(int u:E[v])dfs(u);
post[v]=wsk;
}
const int K=31;
void ins(int r, int x){
//cout<<"+ "<<r<<" "<<x<<"\n";
for(int i=K-1; i>=0; i--){
if(x&(1<<i)){
if(!L[r])L[r]=wsk++;
r=L[r];
}
else{
if(!R[r])R[r]=wsk++;
r=R[r];
}
}
}
int find(int r, int x){
# | 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... |