# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
425287 | zoooma13 | The short shank; Redemption (BOI21_prison) | C++14 | 1634 ms | 123960 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define MAX_N 2000006
#define INF 0x3f3f3f3f
int sz;
pair <int ,int> tree[2*MAX_N];
void bld(vector<int>&arr){
for(int i=sz; i<(sz<<1); i++)
tree[i] = make_pair(arr[i-sz] ,i-sz);
for(int i=sz-1; i; i--)
tree[i] = min(tree[i<<1] ,tree[i<<1|1]);
}
void upd(int p ,int v){
for(tree[p+=sz].first = v; p>1; p>>=1)
tree[p>>1] = min(tree[p] ,tree[p^1]);
}
pair <int ,int> qry(int l ,int r){
auto res = make_pair(INF ,INF);
for(l+=sz ,r+=sz+1; l<r; l>>=1 ,r>>=1){
if(l&1) res = min(res ,tree[l++]);
if(r&1) res = min(res ,tree[--r]);
}
return res;
}
#define FL p<<1
#define FR p<<1|1
array <int ,3> tree2[4*MAX_N];
컴파일 시 표준 에러 (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... |