# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
59553 | ngkan146 | 팀들 (IOI15_teams) | C++11 | 4032 ms | 163376 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "teams.h"
#include <bits/stdc++.h>
using namespace std;
const int N = 500005;
typedef pair<int,int> ii;
#define fi first
#define se second
struct persistentSeg{
int node[N * 30], Lnode[N * 30], Rnode[N * 30];
int root[N];
int totalNode;
persistentSeg(){
for(int i=1;i<=2000000;i++){
Lnode[i] = 2*i;
Rnode[i] = 2*i+1;
}
root[0] = 1;
totalNode = 2000000;
}
int upd(int id,int l,int r,int pos,int val){
if (r < pos || pos < l){ // WTF
//~ assert(0);
}
int newNode = ++totalNode;
node[newNode] = node[id];
Lnode[newNode] = Lnode[id];
Rnode[newNode] = Rnode[id];
# | 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... |