# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
581120 | jasmin | Event Hopping (BOI22_events) | C++17 | 663 ms | 61452 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
#define int long long
const int inf=1e18;
struct segtree{
vector<pair<int,int> > tree;
segtree(int n){
tree.resize(n*4, {inf, -1});
}
pair<int,int> merge(pair<int,int> a, pair<int,int> b){
if(a.first<b.first){
return a;
}
return b;
}
pair<int,int> update(int l, int r, int v, int x, int val, int ind){
if(r<=x || x<l) return tree[v];
if(l+1==r){
return tree[v]=merge(tree[v], {val, ind});
}
int m=l+(r-l)/2;
return tree[v]=merge(update(l, m, v*2+1, x, val, ind), update(m, r, v*2+2, x, val, ind));
}
pair<int,int> query(int l, int r, int v, int ql, int qr){
if(qr<=l || r<=ql) return {inf, -1};
# | 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... |