# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
692603 | owoovo | Snowball (JOI21_ho_t2) | C++14 | 264 ms | 12712 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define ll long long
using namespace std;
pair<ll,ll> BITmax[200010],BITmin[200010];
ll ori[200010],ans[200010]={};
void modify(pair<ll,ll> x,ll p){
while(p<=200005){
if(BITmax[p].first<x.first){
BITmax[p]=x;
}
if(BITmin[p].first>x.first){
BITmin[p]=x;
}
p+=p&(-p);
}
return ;
}
pair<pair<ll,ll>,pair<ll,ll>> q(ll p){
pair<ll,ll> ansmax={0,0},ansmin={0,0};
while(p){
if(ansmax.first<BITmax[p].first){
ansmax=BITmax[p];
}
if(ansmin.first>BITmin[p].first){
ansmin=BITmin[p];
}
p-=p&(-p);
}
return make_pair(ansmax,ansmin);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |