# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
341193 | wwdd | Hedgehog Daniyar and Algorithms (IZhO19_sortbooks) | C++14 | 1008 ms | 119972 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef pair<ll,ll> pl;
class ST {
private:
vl st;
int n;
public:
ST(int n_) {
n = n_;
st.assign(2*n,0);
}
void up(ll l, ll r, ll val) {
l += n;
r += n;
for(;l<r;l>>=1,r>>=1) {
if(l&1) {
st[l] = max(st[l],val);
l++;
}
if(r&1) {
--r;
st[r] = max(st[r],val);
}
}
}
ll get(int p) {
p += n;
# | 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... |